putain de variable d\'environnement de merde \:\)
This commit is contained in:
parent
483e401527
commit
102b170a91
@ -26,10 +26,11 @@ echo "GAME_PATH : ${GAME_PATH}"
|
|||||||
echo
|
echo
|
||||||
cd ${GAME_PATH}/bin
|
cd ${GAME_PATH}/bin
|
||||||
echo
|
echo
|
||||||
echo " --- Don't Starve Together, exterieur "
|
echo " --- Demarrage du shard Don't Starve Together, Master "
|
||||||
$(dirname $0)/DST_shard_start.sh ${serveur} Master
|
$(dirname $0)/DST_shard_start.sh ${serveur} Master
|
||||||
sleep 15
|
sleep 15
|
||||||
echo
|
echo
|
||||||
echo " ----- Don't Starve Together, caves "
|
echo " --- Demarrage du shard Don't Starve Together, Caves "
|
||||||
$(dirname $0)/DST_shard_start.sh ${serveur} Caves
|
$(dirname $0)/DST_shard_start.sh ${serveur} Caves
|
||||||
|
echo
|
||||||
echo "Serveur demarre"
|
echo "Serveur demarre"
|
||||||
|
@ -3,8 +3,11 @@
|
|||||||
serveur=$1
|
serveur=$1
|
||||||
shard=$2
|
shard=$2
|
||||||
|
|
||||||
[ -z ${serveur} ] && echo "XXX Missing parameter : server name XXX" && exit 1
|
[ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/../../params/${GAME_NAME}.params" && exit 2
|
||||||
[ -z ${shard} ] && echo "XXX Missing parameter : shard [dehors|caves] XXX" && exit 1
|
source $(dirname $0)/../../params/${GAME_NAME}.params
|
||||||
|
|
||||||
|
([ -z ${serveur} ] && echo "XXX Missing parameter : server name XXX" && exit 1) || echo "Serveur : ${serveur}"
|
||||||
|
([ -z ${shard} ] && echo "XXX Missing parameter : shard [dehors|caves] XXX" && exit 1) || echo "Shard : ${shard}"
|
||||||
[ ${shard} != "Master" ] && [ ${shard} != "Caves" ] && echo "XXX Parameter error : shard [dehors|caves] XXX" && exit 1
|
[ ${shard} != "Master" ] && [ ${shard} != "Caves" ] && echo "XXX Parameter error : shard [dehors|caves] XXX" && exit 1
|
||||||
mkdir -p ${LOG_PATH}
|
mkdir -p ${LOG_PATH}
|
||||||
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/${serveur}_${shard}.out 2>>${LOG_PATH}/${serveur}_${shard}.err &
|
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/${serveur}_${shard}.out 2>>${LOG_PATH}/${serveur}_${shard}.err &
|
||||||
|
Loading…
Reference in New Issue
Block a user