Add given password for hosts/mermet/knot/autogeree.net/lebureau.conf to store.
[sourcephile-nix.git] / hosts / losurdo / encrypt.sh
index 26c1929bce636fa47c4e0a96b72c837cf4fac14e..7ff518c30fb8d4550b200cb25a15efa6ed6917e8 100755 (executable)
@@ -10,6 +10,6 @@ umask 177
 SECRET=$(mktemp /dev/shm/secret.XXXXXXX)
 trap 'chmod 600 $SECRET; shred --remove=unlink $SECRET' EXIT
 gpg --batch --decrypt "$gpg" |
-ssh -o StrictHostKeyChecking=yes -o ControlMaster=auto -o ControlPersist=16s root@losurdo.wg -- systemd-creds encrypt --name "$name" --with-key=auto - - |
+ssh -o StrictHostKeyChecking=yes -o ControlMaster=auto -o ControlPersist=16s root@losurdo.sp -- systemd-creds encrypt --name "$name" --with-key=auto - - |
 install -D -m 640 /dev/stdin "$SECRET"
 cp "$SECRET" "$base".cred