bordel
This commit is contained in:
parent
ced09dd91b
commit
044887164b
33
DST/$
33
DST/$
@ -1,33 +0,0 @@
|
|||||||
#!/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,5 +1,5 @@
|
|||||||
export GAME_NAME=DST
|
export GAME_NAME='DST'
|
||||||
export GAME_STEAMID=343050
|
export GAME_STEAMID=343050
|
||||||
export GAME_PATH=/jeux/server_dst/
|
export GAME_PATH="~/jeux/server_dst/"
|
||||||
export LOG_PATH=~/logs/${GAME_NAME}/
|
export LOG_PATH="~/logs/${GAME_NAME}/"
|
||||||
export STEAMCMD=/home/steamcmd/steamcmd.sh
|
export STEAMCMD="~/steamcmd/steamcmd.sh"
|
||||||
|
@ -9,7 +9,7 @@ if [ ! -r "$(dirname $0)/../../params/${GAME_NAME}.params" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
source $(dirname $0)/../../params/${GAME_NAME}.params || (echo "Impossible de charger les parametres du jeu via $(dirname $0)/../../params/${GAME_NAME}.params" && exit 5)
|
source $(dirname $0)/../../params/${GAME_NAME}.params || (echo "Impossible de charger les parametres du jeu via $(dirname $0)/../../params/${GAME_NAME}.params" && exit 5)
|
||||||
[ ! -d "${GAME_PATH}" ] && echo "creation du repertoire de jeu ${GAME_PATH}"
|
[ ! -d "${GAME_PATH}" ] && echo "creation du repertoire de jeu ${GAME_PATH}" && mkdir -p ${GAME_PATH}
|
||||||
[ -z ${GAME_STEAMID} ] && "Missing App SteamID" && exit 7
|
[ -z ${GAME_STEAMID} ] && "Missing App SteamID" && exit 7
|
||||||
echo "Mise a jour du jeu ..."
|
echo "Mise a jour du jeu ..."
|
||||||
echo "${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit"
|
echo "${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit"
|
||||||
|
@ -22,6 +22,8 @@ echo " Serveur ${serveur}"
|
|||||||
echo
|
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/*
|
[ ! -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
|
echo
|
||||||
|
echo "GAME_PATH : ${GAME_PATH}"
|
||||||
|
echo
|
||||||
cd ${GAME_PATH}/bin
|
cd ${GAME_PATH}/bin
|
||||||
echo
|
echo
|
||||||
echo " --- Don't Starve Together, exterieur "
|
echo " --- Don't Starve Together, exterieur "
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
GAME_PATH="~/jeux/server_${GAME_NAME}"
|
GAME_PATH=~/jeux/server_${GAME_NAME}
|
||||||
LOG_PATH="~/logs/${GAME_NAME}"
|
LOG_PATH=~/logs/${GAME_NAME}
|
||||||
GAME_BIN="${GAME_PATH}/bin/dontstarve_dedicated_server_nullrenderer"
|
GAME_BIN=${GAME_PATH}/bin/dontstarve_dedicated_server_nullrenderer
|
||||||
GAME_PARAMS="-console -cluster ${serveur}Cluster -shard ${shard}"
|
GAME_PARAMS=-console -cluster ${serveur}Cluster -shard ${shard}
|
||||||
|
Loading…
Reference in New Issue
Block a user