Browse code

Erreur de sequencage corrigee

Onimaro authored on 15/05/2018 18:34:40
Showing 4 changed files
... ...
@@ -2,13 +2,13 @@
2 2
 source $(dirname $0)/game_globals
3 3
 #[ ! -r "$(dirname $0)/game.params.ori" ] && echo "Fichier de parameteres manquant : $(dirname $0)/game.params.ori" && exit 2
4 4
 if [ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ]; then
5
-       echo "Mise en place du fichier de parametres dans $( cd $(dirname $0)/../../ && pwd)/params/)"
6
-       mkdir -p $(dirname $0)/../../params || echo "Echec de creation ou de verification du repertoire $(dirname $0)/../../params" && exit 3
7
-       cp $(dirname $0)/game.params.ori $(dirname $0)/../../params/${GAME_NAME}.params || echo "Echec de generation du fichier de parametres standard $(dirname $0)/../../params/${GAME_NAME}.params" && exit 4
5
+       echo "Mise en place du fichier de parametres dans $(dirname $0)/../../params/"
6
+       mkdir -p $(dirname $0)/../../params || (echo "Echec de creation ou de verification du repertoire $(dirname $0)/../../params" && exit 3)
7
+       cp $(dirname $0)/game.params.ori $(dirname $0)/../../params/${GAME_NAME}.params || (echo "Echec de generation du fichier de parametres standard $(dirname $0)/../../params/${GAME_NAME}.params" && exit 4)
8 8
        echo "Veuillez configurer le jeu si besoin via le fichier $( ls $(dirname $0)/../../params/${GAME_NAME}.params) puis relancer le script de MAJ"
9 9
        exit 0
10 10
 fi
11
-source $(dirname $0)/../../params/${GAME_NAME}.params || echo "Impossible de charger les parametres du jeu via $(dirname $0)/../../params/${GAME_NAME}.params" && exit 5
11
+source $(dirname $0)/../../params/${GAME_NAME}.params || (echo "Impossible de charger les parametres du jeu via $(dirname $0)/../../params/${GAME_NAME}.params" && exit 5)
12 12
 [ ! -d "${GAME_PATH}" ] && echo "creation du repertoire de jeu ${GAME_PATH}"
13 13
 [ -z ${GAME_STEAMID} ] && "Missing App SteamID" && exit 7
14 14
 echo "Mise a jour du jeu ..."
... ...
@@ -2,8 +2,8 @@
2 2
 
3 3
 serveur=$1
4 4
 reset=$2
5
-[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
6 5
 [ -z ${serveur} ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 1
6
+[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
7 7
 [ ${serveur} == "-reset" ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 2
8 8
 [ ! -z ${reset} ] && [ ${reset} != "-reset" ] && echo "Le deuxieme parametre doit etre -reset ou rien" && exit 3
9 9
 echo
... ...
@@ -2,4 +2,3 @@ GAME_PATH="~/jeux/server_${GAME_NAME}"
2 2
 LOG_PATH="~/logs/${GAME_NAME}"
3 3
 GAME_BIN="${GAME_PATH}/bin/dontstarve_dedicated_server_nullrenderer"
4 4
 GAME_PARAMS="-console -cluster ${serveur}Cluster -shard ${shard}"
5
-GAME_STEAMID=343050
... ...
@@ -1,2 +1,3 @@
1 1
 GAME_NAME='DST'
2 2
 STEAMCMD=~/steamcmd/steamcmd.sh
3
+GAME_STEAMID=343050