diff --git a/papermc.sh b/papermc.sh index 685d1a69ebd82836fef254c6cda385c81bb16bd6..62baf408e193af3a3772005016b7c70db25afcde 100755 --- a/papermc.sh +++ b/papermc.sh @@ -69,22 +69,25 @@ while true tail /papermc/logs/latest.log read befehl case $befehl in - backup + backup) screen -r mc -p 0 -X stuff "stop^M" bash backup.sh ;; - stop + stop) exec_stop ;; - restart + restart) screen -r mc -p 0 -X stuff "stop^M" ;; - restore + restore) screen -r mc -p 0 -X stuff "stop^M" bash restore.sh "\n## Please download Plugins and then start the container again. Press any key to continue" read ;; + *) + echo -n "Befehl nicht erkannt" + ;; esac trap exec_stop TERM INT # SIGTERM ^C etc abfangen und funktion für gracefull shutdown aufrufen else # Server läuft nicht, abgestürzt, gestoppt über minecraft /stop