Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clspigot-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tmueller
clspigot-docker
Commits
86b5e2ba
Commit
86b5e2ba
authored
3 years ago
by
tmueller
Browse files
Options
Downloads
Patches
Plain Diff
Update papermc.sh
parent
214af18e
No related branches found
No related tags found
No related merge requests found
Pipeline
#2842
canceled
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
papermc.sh
+9
-8
9 additions, 8 deletions
papermc.sh
with
9 additions
and
8 deletions
papermc.sh
+
9
−
8
View file @
86b5e2ba
...
@@ -66,13 +66,13 @@ while true
...
@@ -66,13 +66,13 @@ while true
if
[
${
SCRUN
}
=
0
]
if
[
${
SCRUN
}
=
0
]
then
# Server läuft, zeige letzte zeilen vom log an...
then
# Server läuft, zeige letzte zeilen vom log an...
clear
# Aber erstmal sauber machen ^^
clear
# Aber erstmal sauber machen ^^
echo
-n
"Latest Log:"
echo
"Latest Log:"
tail
/papermc/logs/latest.log
tail
/papermc/logs/latest.log
echo
-n
"Befehle: (help für Hilfe)"
echo
"Befehle: (help für Hilfe)"
read
befehl
read
befehl
case
$befehl
in
case
$befehl
in
backup
)
backup
)
echo
-n
"Backup started..."
echo
"Backup started..."
bash /backup.sh
bash /backup.sh
;;
;;
stop
)
stop
)
...
@@ -83,18 +83,18 @@ while true
...
@@ -83,18 +83,18 @@ while true
start_server
start_server
;;
;;
restore
)
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"
screen
-r
mc
-p
0
-X
stuff
"stop^M"
bash /restore.sh
bash /restore.sh
"
\n
## Please download Plugins and then start the container again. Press any key to continue"
"
\n
## Please download Plugins and then start the container again. Press any key to continue"
read
-p
"weiter mit Enter"
read
-p
"weiter mit Enter"
;;
;;
console
|
con
|
tty
)
console
|
con
|
tty
)
echo
-n
"Zum verlassen STRG + A + D drücken"
echo
"Zum verlassen STRG + A + D drücken"
screen
-x
screen
-x
;;
;;
log
)
log
)
echo
-n
"Zum verlassen STRG + X drücken"
echo
"Zum verlassen STRG + X drücken"
nano /papermc/logs/latest.log
nano /papermc/logs/latest.log
;;
;;
tps
)
tps
)
...
@@ -104,10 +104,11 @@ while true
...
@@ -104,10 +104,11 @@ while true
screen
-r
mc
-p
0
-X
stuff
"lag^M"
screen
-r
mc
-p
0
-X
stuff
"lag^M"
;;
;;
help
)
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
esac
trap
exec_stop TERM INT
# SIGTERM ^C etc abfangen und funktion für gracefull shutdown aufrufen
trap
exec_stop TERM INT
# SIGTERM ^C etc abfangen und funktion für gracefull shutdown aufrufen
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment