[mc] For FTB skip ops and white-list when not configured

Fixes #203
This commit is contained in:
Geoff Bourne
2018-03-04 19:01:31 -06:00
parent 0a7a666904
commit 7f82d3098c

View File

@@ -77,12 +77,12 @@ 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
if [ ! -e ${FTB_DIR}/ops.json ]; then
if [ ! -e ${FTB_DIR}/ops.json -a -e /data/ops.txt ]; 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}/
if [ ! -e ${FTB_DIR}/whitelist.json -a -e /data/white-list.txt ]; then
cp -f /data/white-list.txt ${FTB_DIR}/
fi
if [ ! -e ${FTB_DIR}/eula.txt ]; then