Skip to content

Commit

Permalink
Remove ScheduleRestart environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRemote committed Jan 12, 2023
1 parent 9aee5a7 commit 4b4e028
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 29 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ With a maximum memory limit in megabytes (optional, prevents crashes on platform
<pre>docker run -it -v yourvolumename:/minecraft -p 25565:25565 -e MaxMemory=2048 --restart unless-stopped 05jchambers/legendary-java-minecraft-paper:latest</pre>
Using a different timezone:
<pre>docker run -it -v yourvolumename:/minecraft -p 25565:25565 -e TZ="America/Denver" --restart unless-stopped 05jchambers/legendary-java-minecraft-paper:latest</pre>
With a daily scheduled restart (specify time in 24 hour format):
<pre>docker run -it -v yourvolumename:/minecraft -p 25565:25565 -e ScheduleRestart="3:30" --restart unless-stopped 05jchambers/legendary-java-minecraft-paper:latest</pre>
Skipping backups on a certain folder (separate with a comma for multiple):
<pre>docker run -it -v yourvolumename:/minecraft -p 25565:25565 -e NoBackup="plugins/ftp,plugins/test" --restart unless-stopped 05jchambers/legendary-java-minecraft-paper:latest</pre>
Skipping permissions check:
Expand Down Expand Up @@ -140,6 +138,10 @@ This can also be done non-persistently with the following ethtool command: <pre>

<h2>Update History</h2>
<ul>
<li>January 12th 2023</li>
<ul>
<li>Remove broken ScheduleRestart environment variable -- this needs to be done in your OS using docker restart (typically with crontab in Linux or Task Scheduler in Windows)</li>
</ul>
<li>December 7th 2022</li>
<ul>
<li>Update to 1.19.3</li>
Expand Down
3 changes: 0 additions & 3 deletions amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
3 changes: 0 additions & 3 deletions arm64v8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
3 changes: 0 additions & 3 deletions armv7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ services:
#NoBackup: "plugins" # Optional folder to skip during backups
#NoPermCheck: "Y" # Optional flag to skip permissions check
#QuietCurl: "Y" # Optional flag to reduce curl log output by suppressing progress meter
#ScheduleRestart: "3:30" # Optional restart -- specify time in 24 hour format
volumes:
minecraft:
driver: local
3 changes: 0 additions & 3 deletions ppc64le.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
3 changes: 0 additions & 3 deletions riscv64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
3 changes: 0 additions & 3 deletions s390x.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""

# Optional switch to schedule a daily restart (use 24 hour time format like 3:30 for 3:30am)
ENV ScheduleRestart=""

# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""

Expand Down
8 changes: 0 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ else
echo "Skipping permissions check due to NoPermCheck flag"
fi

# Daily scheduled restart
if [ -z "$ScheduleRestart" ]; then
echo "No daily restart scheduled"
else
FutureRestart=$(shutdown -r "$ScheduleRestart")
echo "Scheduling daily restart: $FutureRestart"
fi

# Back up server
if [ -d "world" ]; then
if [ -n "$(which pigz)" ]; then
Expand Down

0 comments on commit 4b4e028

Please sign in to comment.