diff options
author | Alex Auvolat <alex@adnab.me> | 2022-04-20 15:41:54 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-04-20 15:41:54 +0200 |
commit | 6c22f5fdfad8752006c2245b503313973766c31c (patch) | |
tree | 4eb8943999a88135adee687aa03fc06a4cf681cf /deploy_passwords | |
parent | 226fbabf655656f16ca883c8489a2360abdb8367 (diff) | |
download | nixcfg-6c22f5fdfad8752006c2245b503313973766c31c.tar.gz nixcfg-6c22f5fdfad8752006c2245b503313973766c31c.zip |
Add scripts to manage passwords
Diffstat (limited to 'deploy_passwords')
-rwxr-xr-x | deploy_passwords | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy_passwords b/deploy_passwords new file mode 100755 index 0000000..37c2143 --- /dev/null +++ b/deploy_passwords @@ -0,0 +1,5 @@ +#!/usr/bin/env ./sshtool + +write_pass deuxfleurs/cluster/$CLUSTER/passwords /root/deploy_tmp_passwords +cmd 'chpasswd -e < /root/deploy_tmp_passwords' +cmd rm /root/deploy_tmp_passwords |