miase a jour du script de demarrage (tout le monde kiffe les miases)
This commit is contained in:
parent
d863587453
commit
ced09dd91b
33
DST/$
Normal file
33
DST/$
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
serveur=$1
|
||||||
|
reset=$2
|
||||||
|
|
||||||
|
source $(dirname $0)/game_globals
|
||||||
|
[ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/../../params/${GAME_NAME}.params" && exit 2
|
||||||
|
source $(dirname $0)/../../params/${GAME_NAME}.params
|
||||||
|
|
||||||
|
[ -z ${serveur} ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 1
|
||||||
|
[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
|
||||||
|
[ ${serveur} == "-reset" ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 2
|
||||||
|
[ ! -z ${reset} ] && [ ${reset} != "-reset" ] && echo "Le deuxieme parametre doit etre -reset ou rien" && exit 3
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo "############################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# Demarrage des serveurs DST #"
|
||||||
|
echo "# #"
|
||||||
|
echo "############################################"
|
||||||
|
echo
|
||||||
|
echo " Serveur ${serveur}"
|
||||||
|
echo
|
||||||
|
[ ! -z ${reset} ] && [ ${reset} == "-reset" ] && echo "Remise a zero du serveur." && rm -rf ~steamcmd/.klei/DoNotStarveTogether/${serveur}Cluster/Master/save/session/* && rm -rf ~steamcmd/.klei/DoNotStarveTogether/${serveur}Cluster/Caves/save/session/*
|
||||||
|
echo
|
||||||
|
cd ${GAME_PATH}/bin
|
||||||
|
echo
|
||||||
|
echo " --- Don't Starve Together, exterieur "
|
||||||
|
$(dirname $0)/DST_shard_start.sh ${serveur} Master
|
||||||
|
sleep 15
|
||||||
|
echo
|
||||||
|
echo " ----- Don't Starve Together, caves "
|
||||||
|
$(dirname $0)/DST_shard_start.sh ${serveur} Caves
|
||||||
|
echo "Serveur demarre"
|
@ -1,7 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
serveur=$1
|
serveur=$1
|
||||||
reset=$2
|
reset=$2
|
||||||
|
|
||||||
|
source $(dirname $0)/game_globals
|
||||||
|
[ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/../../params/${GAME_NAME}.params" && exit 2
|
||||||
|
source $(dirname $0)/../../params/${GAME_NAME}.params
|
||||||
|
|
||||||
[ -z ${serveur} ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 1
|
[ -z ${serveur} ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 1
|
||||||
[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
|
[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
|
||||||
[ ${serveur} == "-reset" ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 2
|
[ ${serveur} == "-reset" ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user