Skip to content
Snippets Groups Projects
Commit 86b5e2ba authored by tmueller's avatar tmueller
Browse files

Update papermc.sh

parent 214af18e
No related branches found
No related tags found
No related merge requests found
Pipeline #2842 canceled
......@@ -66,13 +66,13 @@ while true
if [ ${SCRUN} = 0 ]
then # Server läuft, zeige letzte zeilen vom log an...
clear # Aber erstmal sauber machen ^^
echo -n "Latest Log:"
echo "Latest Log:"
tail /papermc/logs/latest.log
echo -n "Befehle: (help für Hilfe)"
echo "Befehle: (help für Hilfe)"
read befehl
case $befehl in
backup)
echo -n "Backup started..."
echo "Backup started..."
bash /backup.sh
;;
stop)
......@@ -83,18 +83,18 @@ while true
start_server
;;
restore)
echo -n "Der Server wird gestoppt und das Restore-Script gestartet..."
echo "Der Server wird gestoppt und das Restore-Script gestartet..."
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 -p "weiter mit Enter"
;;
console | con | tty)
echo -n "Zum verlassen STRG + A + D drücken"
echo "Zum verlassen STRG + A + D drücken"
screen -x
;;
log)
echo -n "Zum verlassen STRG + X drücken"
echo "Zum verlassen STRG + X drücken"
nano /papermc/logs/latest.log
;;
tps)
......@@ -104,10 +104,11 @@ while true
screen -r mc -p 0 -X stuff "lag^M"
;;
help)
echo -n "backup | restore | console | log | tps | ram | stop | restart"
echo "backup | restore | console | log | tps | ram | stop | restart"
sleep 5
;;
*)
echo -n "Befehl nicht erkannt"
echo "Befehl nicht erkannt"
;;
esac
trap exec_stop TERM INT # SIGTERM ^C etc abfangen und funktion für gracefull shutdown aufrufen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment