Browse Source

Merge remote-tracking branch 'refs/remotes/origin/master' into development

pull/1138/head
Daniel Gibbs 9 years ago
parent
commit
74f616b949
  1. 10
      lgsm/functions/install_config.sh

10
lgsm/functions/install_config.sh

@ -36,6 +36,15 @@ fn_set_config_vars(){
sleep 1 sleep 1
} }
# Checks if cfg dir exists, creates it if it doesn't
fn_check_cfgdir(){
if [ ! -d "${servercfgdir}" ]; then
echo "creating ${servercfgdir} config folder."
fn_script_log_info "creating ${servercfgdir} config folder."
mkdir -pv "${servercfgdir}"
fi
}
# Copys the default configs from Game-Server-Configs repo to the # Copys the default configs from Game-Server-Configs repo to the
# correct location # correct location
fn_default_config_remote(){ fn_default_config_remote(){
@ -75,6 +84,7 @@ elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "ARMA 3" ]; then elif [ "${gamename}" == "ARMA 3" ]; then
gamedirname="Arma3" gamedirname="Arma3"
fn_check_cfgdir
array_configs+=( server.cfg network.cfg ) array_configs+=( server.cfg network.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote

Loading…
Cancel
Save