Added warning if user doesn't use the server version of the modpack

This commit is contained in:
Janik Bussalb 2018-08-14 17:45:51 +02:00 committed by GitHub
parent d9c2f26506
commit 1c24dc1def
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,11 @@ if [[ $startScriptCount = 0 ]]; then
unzip -o ${srv_modpack} -d ${FTB_BASE_DIR} | awk '{printf "."} END {print ""}'
fi
if [ ! -f ./ServerStart.sh ]; then
echo "Please make sure you are using the server version of the FTB modpack!"
exit 2
fi
export FTB_SERVER_START=./ServerStart.sh
export FTB_DIR=$(dirname $(find ${FTB_DIR} -name ServerStart.sh))
chmod a+x ${FTB_DIR}/${FTB_SERVER_START}