mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 23:27:17 +00:00
test for the correct files at the correct locations
This commit is contained in:
parent
66330af708
commit
345696227d
1 changed files with 12 additions and 1 deletions
|
@ -77,7 +77,18 @@ echo "Setting initial memory to ${INIT_MEMORY:-${MEMORY}} and max to ${MAX_MEMOR
|
|||
JVM_OPTS="-Xms${INIT_MEMORY:-${MEMORY}} -Xmx${MAX_MEMORY:-${MEMORY}} ${JVM_OPTS}"
|
||||
|
||||
if [[ ${TYPE} == "FEED-THE-BEAST" ]]; then
|
||||
cp -f /data/{eula,ops,white-list}.txt ${FTB_DIR}/
|
||||
if [ ! -e ${FTB_DIR}/ops.json ]; then
|
||||
cp -f /data/ops.txt ${FTB_DIR}/
|
||||
fi
|
||||
|
||||
if [ ! -e ${FTBDIR}/whitelist.json ]; then
|
||||
cp -f ${FTB_DIR}/white-list.txt ${FTB_DIR}/
|
||||
fi
|
||||
|
||||
if [ ! -e ${FTB_DIR}/eula.txt ]; then
|
||||
cp -f /data/eula.txt ${FTB_DIR}/
|
||||
fi
|
||||
|
||||
cd ${FTB_DIR}
|
||||
echo "Running FTB server modpack start ..."
|
||||
exec ${FTB_SERVER_START}
|
||||
|
|
Loading…
Add table
Reference in a new issue