automatically restart server
This commit is contained in:
parent
b7b630e309
commit
be888848c2
1 changed files with 2 additions and 1 deletions
|
@ -5,5 +5,6 @@
|
|||
|
||||
echo "$SSH_PRIVATEKEY" > ssh_key
|
||||
chmod 700 ssh_key
|
||||
scp -o StrictHostKeyChecking=no -i ssh_key -P "$BB_PORT" "$1" "root@$BB_HOST:$BB_PATH"
|
||||
scp -o StrictHostKeyChecking=no -i ssh_key -P "$BB_PORT" "$1" "root@$BB_HOST:$BB_PATH" &&
|
||||
(ssh -o StrictHostKeyChecking=no -i ssh_key -p "$BB_PORT" "root@$BB_HOST" "cd $BB_PATH && bash $(basename "$1").sh" || true)
|
||||
rm ssh_key
|
Loading…
Add table
Reference in a new issue