Skip to content

Commit dbf589f

Browse files
committedAug 29, 2019
read only
1 parent 608dbf5 commit dbf589f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎opt/minecraft

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ ngrok_pid=$!
1717
# Do an inline sync first, then start the background job
1818
echo "Starting sync..."
1919
bin/sync
20-
eval "while true; do sleep ${AWS_SYNC_INTERVAL:-60}; bin/sync; done &"
21-
sync_pid=$!
20+
if [ "$READ_ONLY" != "true" ]; then
21+
eval "while true; do sleep ${AWS_SYNC_INTERVAL:-60}; bin/sync; done &"
22+
sync_pid=$!
23+
fi
2224

2325
# create server config
2426
echo "server-port=${mc_port}" >> /app/server.properties

0 commit comments

Comments
 (0)
Please sign in to comment.