We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 608dbf5 commit dbf589fCopy full SHA for dbf589f
opt/minecraft
@@ -17,8 +17,10 @@ ngrok_pid=$!
17
# Do an inline sync first, then start the background job
18
echo "Starting sync..."
19
bin/sync
20
-eval "while true; do sleep ${AWS_SYNC_INTERVAL:-60}; bin/sync; done &"
21
-sync_pid=$!
+if [ "$READ_ONLY" != "true" ]; then
+ eval "while true; do sleep ${AWS_SYNC_INTERVAL:-60}; bin/sync; done &"
22
+ sync_pid=$!
23
+fi
24
25
# create server config
26
echo "server-port=${mc_port}" >> /app/server.properties
0 commit comments