mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-11 04:49:44 +00:00
Fix unquoted COPY_MODS_DEST and COPY_CONFIG_DEST variables (#942)
This commit is contained in:
@@ -25,16 +25,16 @@ fi
|
|||||||
|
|
||||||
if [ -d /mods ]; then
|
if [ -d /mods ]; then
|
||||||
log "Copying any mods over..."
|
log "Copying any mods over..."
|
||||||
mkdir -p $COPY_MODS_DEST
|
mkdir -p "${COPY_MODS_DEST}"
|
||||||
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /mods/ $COPY_MODS_DEST
|
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /mods/ "${COPY_MODS_DEST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
: ${COPY_CONFIG_DEST:="/data/config"}
|
: ${COPY_CONFIG_DEST:="/data/config"}
|
||||||
|
|
||||||
if [ -d /config ]; then
|
if [ -d /config ]; then
|
||||||
log "Copying any configs from /config to $COPY_CONFIG_DEST"
|
log "Copying any configs from /config to ${COPY_CONFIG_DEST}"
|
||||||
mkdir -p $COPY_CONFIG_DEST
|
mkdir -p "${COPY_CONFIG_DEST}"
|
||||||
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /config/ $COPY_CONFIG_DEST
|
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /config/ "${COPY_CONFIG_DEST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec ${SCRIPTS:-/}start-finalSetupServerProperties $@
|
exec ${SCRIPTS:-/}start-finalSetupServerProperties $@
|
||||||
|
|||||||
Reference in New Issue
Block a user