Changed order of /plugins rsync to be before processing env vars

For #577
This commit is contained in:
Geoff Bourne committed 2020-07-06 17:16:51 -05:00
1 parent 825833c859
commit 9a7a532f7b
21 files changed
+35 -30

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
. ${SCRIPTS:-/}start-utils
if [ -d /plugins ]; then
case ${TYPE} in
SPIGOT|BUKKIT|PAPER)
mkdir -p /data/plugins
log "Copying plugins over..."
# Copy plugins over using rsync to allow deeply nested updates of plugins
# only updates files if the source file is newer and print updated files
rsync -a --out-format="update:%f:Last Modified %M" --prune-empty-dirs --update /plugins /data
;;
esac
fi
exec ${SCRIPTS:-/}start-finalSetupServerProperties $@