fix: script
This commit is contained in:
parent
8e572dd89d
commit
24a073be56
1 changed files with 5 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue