mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
ecbdeb2096
For #576
24 lines
568 B
Bash
Executable File
24 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 $@
|