Browse Source

fix(inssserver): correct issue with server password

pull/2141/head
Daniel Gibbs 6 years ago
committed by GitHub
parent
commit
14b0ff037e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      lgsm/config-default/config-lgsm/inssserver/_default.cfg

11
lgsm/config-default/config-lgsm/inssserver/_default.cfg

@ -21,11 +21,12 @@ maxplayers="28"
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
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
# Allows serverpassword to work with parameters
if [ "${serverpassword}" != "NOT SET" ]; 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 ####

Loading…
Cancel
Save