mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-23 14:10:30 +00:00
@@ -7,22 +7,20 @@ if [ -n "$OPS" ]; then
|
|||||||
log "Updating ops"
|
log "Updating ops"
|
||||||
rm -f /data/ops.txt.converted
|
rm -f /data/ops.txt.converted
|
||||||
echo $OPS | awk -v RS=, '{print}' > /data/ops.txt
|
echo $OPS | awk -v RS=, '{print}' > /data/ops.txt
|
||||||
|
fi
|
||||||
if isTrue "${OVERRIDE_OPS}"; then
|
if isTrue "${OVERRIDE_OPS}"; then
|
||||||
log "Recreating ops.json file at server startup"
|
log "Recreating ops.json file at server startup"
|
||||||
rm -f /data/ops.json
|
rm -f /data/ops.json
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$WHITELIST" ]; then
|
if [ -n "$WHITELIST" ]; then
|
||||||
log "Updating whitelist"
|
log "Updating whitelist"
|
||||||
rm -f /data/white-list.txt.converted
|
rm -f /data/white-list.txt.converted
|
||||||
echo $WHITELIST | awk -v RS=, '{print}' > /data/white-list.txt
|
echo $WHITELIST | awk -v RS=, '{print}' > /data/white-list.txt
|
||||||
|
fi
|
||||||
if isTrue "${OVERRIDE_WHITELIST}"; then
|
if isTrue "${OVERRIDE_WHITELIST}"; then
|
||||||
log "Recreating whitelist.json file at server startup"
|
log "Recreating whitelist.json file at server startup"
|
||||||
rm -f /data/whitelist.json
|
rm -f /data/whitelist.json
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$ICON" ]; then
|
if [ -n "$ICON" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user