From 08aae6688c55e71938a95706aee9d1b2bdfc4c08 Mon Sep 17 00:00:00 2001 From: tmueller <tmueller@cl.uni-heidelberg.de> Date: Thu, 8 Apr 2021 19:50:21 +0000 Subject: [PATCH] fix syntax --- papermc.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/papermc.sh b/papermc.sh index 685d1a6..62baf40 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 -- GitLab