소스 검색

Update _default.cfg

NYPD 7 년 전
부모
커밋
7f38d35ab6
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lgsm/config-default/config-lgsm/inssserver/_default.cfg

+ 3 - 3
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
 }