diff --git a/lgsm/modules/install_config.sh b/lgsm/modules/install_config.sh index 07aeca5552..17e92a08f6 100644 --- a/lgsm/modules/install_config.sh +++ b/lgsm/modules/install_config.sh @@ -10,10 +10,10 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" # Checks if server cfg dir exists, creates it if it doesn't. fn_check_cfgdir() { changes="" - if [ "${shortname}" == "dst" ]; then + if [ -n "${clustercfgdir}" ]; then echo -en "creating config directory [ ${italic}${clustercfgdir}${default} ]" changes+=$(mkdir -pv "${clustercfgdir}") - elif [ "${shortname}" == "arma3" ]; then + elif [ -n "${networkcfgdir}" ]; then echo -en "creating config directory [ ${italic}${networkcfgdir}${default} ]" changes+=$(mkdir -pv "${networkcfgdir}") else