test for the correct files at the correct locations

This commit is contained in:
Dirk Gustke 2018-02-06 21:21:23 +01:00 committed by GitHub
parent 66330af708
commit 345696227d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}