1
0
Fork 0

count down from 3 instead of 5
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2021-08-23 20:46:51 -04:00
parent f177ce468c
commit 5eb56e512d
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 4 additions and 8 deletions

View File

@ -2,16 +2,12 @@
if pgrep -f minedock >/dev/null; then
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say MINECRAFT SERVER SHUTTING DOWN!\r\"`"
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"save-all\r\"`"
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say 5...\r\"`"
sleep 1
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say 4...\r\"`"
sleep 1
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say 3...\r\"`"
sleep 1
sleep 2
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say 2...\r\"`"
sleep 1
sleep 2
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"say 1...\r\"`"
sleep 1
sleep 2
s6-setuidgid guardian screen -S minedock -X stuff "`echo -ne \"stop\r\"`"
sleep 2
fi
fi