mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 13:52:27 +00:00
ecbdeb2096
For #576
23 lines
568 B
Bash
Executable file
23 lines
568 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. ${SCRIPTS:-/}start-utils
|
|
|
|
: ${PLUGINS_SYNC_UPDATE:=true}
|
|
|
|
isDebugging && set -x
|
|
|
|
if [ -d /plugins ]; then
|
|
case ${TYPE} in
|
|
SPIGOT|BUKKIT|PAPER)
|
|
mkdir -p /data/plugins
|
|
log "Copying plugins over..."
|
|
if isTrue ${PLUGINS_SYNC_UPDATE}; then
|
|
updateArg="--update"
|
|
fi
|
|
# Copy plugins over using rsync to allow deeply nested updates of plugins
|
|
rsync -a --out-format="update:%f:Last Modified %M" --prune-empty-dirs $updateArg /plugins /data
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
exec ${SCRIPTS:-/}start-finalSetupServerProperties $@
|