From 7f38d35ab64d33862bf7b426cb971bae04af9ed8 Mon Sep 17 00:00:00 2001 From: NYPD <6412879+NYPD@users.noreply.github.com> Date: Tue, 1 Jan 2019 20:04:00 -0500 Subject: [PATCH] Update _default.cfg --- lgsm/config-default/config-lgsm/inssserver/_default.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/config-default/config-lgsm/inssserver/_default.cfg b/lgsm/config-default/config-lgsm/inssserver/_default.cfg index df54c8a30..384d231eb 100644 --- a/lgsm/config-default/config-lgsm/inssserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/inssserver/_default.cfg @@ -21,10 +21,10 @@ maxplayers="28" ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters fn_parms(){ -if [ "${serverpassword}" != "" ]; then -parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password=${serverpassword} -hostname='${servername}' -log" -else +if [ -z "${serverpassword}" ]; then parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname='${servername}' -log" +else +parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password=${serverpassword} -hostname='${servername}' -log" fi }