Merge pull request #195 from scones/patch-2

test for the correct files at the correct locations
This commit is contained in:
Geoff Bourne 2018-02-07 12:10:06 -06:00 committed by GitHub
commit 6ef6bc68c2
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 ${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}
echo "Running FTB server modpack start ..."
exec ${FTB_SERVER_START}