This commit is contained in:
parent
8ded7c9c8b
commit
a73c1346bd
12
targets/web01/reboot.sh
Executable file
12
targets/web01/reboot.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
|
HOST=clan.lol
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
ssh "root@$HOST" reboot
|
||||||
|
# wait till shutdown
|
||||||
|
while ping -4 -W 1 -c 1 "$HOST"; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
"$SCRIPT_DIR/decrypt.sh"
|
Loading…
Reference in New Issue
Block a user