mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-22 13:48:31 +00:00
Merge pull request #195 from scones/patch-2
test for the correct files at the correct locations
This commit is contained in:
@@ -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}"
|
JVM_OPTS="-Xms${INIT_MEMORY:-${MEMORY}} -Xmx${MAX_MEMORY:-${MEMORY}} ${JVM_OPTS}"
|
||||||
|
|
||||||
if [[ ${TYPE} == "FEED-THE-BEAST" ]]; then
|
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 ${FTB_DIR}/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}
|
cd ${FTB_DIR}
|
||||||
echo "Running FTB server modpack start ..."
|
echo "Running FTB server modpack start ..."
|
||||||
exec ${FTB_SERVER_START}
|
exec ${FTB_SERVER_START}
|
||||||
|
|||||||
Reference in New Issue
Block a user