fix: script

This commit is contained in:
Strix 2023-10-30 00:59:38 +01:00
parent 8e572dd89d
commit 24a073be56
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -6,12 +6,15 @@ if ! [ "$(id -u)" = "0" ]; then
exit 1 exit 1
fi fi
if ! [ "$HOSTNAME" = "link" ]; then
echo "this should only be ran on link"
exit 1
fi
scp \ scp \
-i /etc/ixvd/secrets/ssh/keys/master/ixvd-master \
/etc/ixvd/secrets/ssh/keys/master/ixvd-master \ /etc/ixvd/secrets/ssh/keys/master/ixvd-master \
root@$1:.ssh/id_rsa root@$1:.ssh/id_rsa
ssh \ ssh \
-i /etc/ixvd/secrets/ssh/keys/master/ixvd-master \
root@$1 \ root@$1 \
chmod 600 .ssh/id_rsa chmod 600 .ssh/id_rsa