Added COPY_MODS_DEST env variable (#831)

This commit is contained in:
Jakob Sjælland authored and GitHub committed 2021-04-12 20:24:12 -05:00
1 parent 2b989e4c39
commit da21c2e0a7
2 files changed
+7 -5

No files matched your search

+4 -2
View File
@@ -21,10 +21,12 @@ if [ -d /plugins ]; then
fi
# If any modules have been provided, copy them over
: ${COPY_MODS_DEST:="/data/mods"}
if [ -d /mods ]; then
log "Copying any mods over..."
mkdir -p /data/mods
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /mods /data
mkdir -p $COPY_MODS_DEST
rsync -a --out-format="update:%f:Last Modified %M" "${rsyncArgs[@]}" --prune-empty-dirs --update /mods/ $COPY_MODS_DEST
fi
: ${COPY_CONFIG_DEST:="/data/config"}