mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-24 10:06:23 +00:00
Merge pull request #241 from JanikBot/patch-2
Added warning if user doesn't use the server version of the modpack
This commit is contained in:
@@ -68,6 +68,11 @@ if [[ $startScriptCount = 0 ]]; then
|
||||
unzip -o ${srv_modpack} -d ${FTB_BASE_DIR} | awk '{printf "."} END {print ""}'
|
||||
fi
|
||||
|
||||
if [[ $(find ${FTB_BASE_DIR} -name ServerStart.sh |wc -l) = 0 ]]; 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}
|
||||
|
||||
Reference in New Issue
Block a user