„scripts/start-server.sh“ ändern

This commit is contained in:
2019-05-30 14:54:21 +02:00
parent 8e004b38a5
commit 1ec6b96075

View File

@@ -124,14 +124,6 @@ echo "---Prepare Server---"
cp ${DATA_DIR}/steamcmd/linux32/* ${SERVER_DIR} cp ${DATA_DIR}/steamcmd/linux32/* ${SERVER_DIR}
chmod -R 770 ${DATA_DIR} chmod -R 770 ${DATA_DIR}
if [ "${BAMBI_FIX}" == "true" ]; then
if grep -r 'sql-mode="ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"' /etc/alternatives/my.cnf; then
:
else
sed -i '$a\[mysqld]\nsql-mode="ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"' /etc/alternatives/my.cnf
fi
fi
echo "---Start Server---" echo "---Start Server---"
cd ${SERVER_DIR} cd ${SERVER_DIR}
screen -S ArmA3 -L -Logfile ${SERVER_DIR}/Arma3Log.0 -d -m ./arma3server -cfg=@ExileServer/basic.cfg -config=@ExileServer/config.cfg -autoinit -mod=@Exile\; -servermod=@ExileServer\; >> ExileModLog.0 ${GAME_PARAMS} screen -S ArmA3 -L -Logfile ${SERVER_DIR}/Arma3Log.0 -d -m ./arma3server -cfg=@ExileServer/basic.cfg -config=@ExileServer/config.cfg -autoinit -mod=@Exile\; -servermod=@ExileServer\; >> ExileModLog.0 ${GAME_PARAMS}