From a411823619afba7a07f56580b80296c8f13da6ab Mon Sep 17 00:00:00 2001 From: NYPD Date: Tue, 1 Jan 2019 15:07:59 -0500 Subject: [PATCH] Fix issue where no password is assigned --- lgsm/config-default/config-lgsm/inssserver/_default.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lgsm/config-default/config-lgsm/inssserver/_default.cfg b/lgsm/config-default/config-lgsm/inssserver/_default.cfg index bfbda5f79..df54c8a30 100644 --- a/lgsm/config-default/config-lgsm/inssserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/inssserver/_default.cfg @@ -21,7 +21,11 @@ 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 +parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname='${servername}' -log" +fi } #### LinuxGSM Settings ####