diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 10fc6066c..92f7170a6 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -27,7 +27,7 @@ adminpassword="CHANGE_ME" ip="0.0.0.0" fn_parms(){ -parms="-ip ${ip} -adminpassword \"${adminpassword}\"" +parms="-ip ${ip} -adminpassword \"${adminpassword}\" -servername ${servicename}" } #### LinuxGSM Settings #### @@ -96,8 +96,8 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./start-server.sh" -servercfg="server.ini" -servercfgdefault="server.cfg" +servercfg="${servicename}.ini" +servercfgdefault="server.ini" servercfgdir="${HOME}/Zomboid/Server" servercfgfullpath="${servercfgdir}/${servercfg}" diff --git a/lgsm/functions/install_config.sh b/lgsm/functions/install_config.sh index 872618c1e..30292a276 100644 --- a/lgsm/functions/install_config.sh +++ b/lgsm/functions/install_config.sh @@ -298,6 +298,7 @@ elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then fn_set_config_vars elif [ "${gamename}" == "Project Zomboid" ]; then gamedirname="ProjectZomboid" + fn_check_cfgdir array_configs+=( server.ini ) fn_fetch_default_config fn_default_config_remote