mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 10:41:00 +00:00
Added warning if user doesn't use the server version of the modpack
This commit is contained in:
1 parent
d9c2f26506
commit
1c24dc1def
1 file changed
+5
@@ -68,6 +68,11 @@ if [[ $startScriptCount = 0 ]]; then
|
|||||||
unzip -o ${srv_modpack} -d ${FTB_BASE_DIR} | awk '{printf "."} END {print ""}'
|
unzip -o ${srv_modpack} -d ${FTB_BASE_DIR} | awk '{printf "."} END {print ""}'
|
||||||
fi
|
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_SERVER_START=./ServerStart.sh
|
||||||
export FTB_DIR=$(dirname $(find ${FTB_DIR} -name ServerStart.sh))
|
export FTB_DIR=$(dirname $(find ${FTB_DIR} -name ServerStart.sh))
|
||||||
chmod a+x ${FTB_DIR}/${FTB_SERVER_START}
|
chmod a+x ${FTB_DIR}/${FTB_SERVER_START}
|
||||||
|
|||||||
Reference in new issue
Block a user