File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed
config-default/config-lgsm Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ip="0.0.0.0"
1313port =" 27102"
1414queryport =" 27131"
1515rconport =" 27015"
16- rconpassword =" "
16+ rconpassword =" CHANGE_ME "
1717servername =" LinuxGSM"
1818defaultmap =" Oilfield"
1919defaultscenario =" Scenario_Refinery_Push_Security"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ defaultmap="co_core"
1515maxplayers =" 24"
1616servername =" LinuxGSM"
1717httpuser =" admin"
18- httppassword =" admin "
18+ httppassword =" CHANGE_ME "
1919httpport =" 8080"
2020mods =" "
2121serverpassword =" "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ maxplayers="20"
1616maxspectators =" 5"
1717servername =" LinuxGSM"
1818httpuser =" admin"
19- httppassword =" admin "
19+ httppassword =" CHANGE_ME "
2020httpport =" 8080"
2121modserverport =" 27031"
2222serverpassword =" "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ homekingdom="4"
2727
2828# Unlocks the admin commands from within the game, that can be used to change
2929# the gameplay settings of the server, such as skill gain rate and field growth time.
30- adminpassword =" ADMINPASSWORD "
30+ adminpassword =" CHANGE_ME "
3131
3232# If true the server will follow the rules from the Epic servers in Wurm Online.
3333# For instance it will use the skill curve.
Original file line number Diff line number Diff line change @@ -19,8 +19,15 @@ if [ "${shortname}" == "rust" ] && [ -v rconpassword ] && [ -z "${rconpassword}"
1919 fn_print_fail_nl " RCON password is not set"
2020 fn_script_log_warn " RCON password is not set"
2121elif [ -v rconpassword ] && [ " ${rconpassword} " == " CHANGE_ME" ]; then
22- fn_print_warn_nl " Default RCON Password detected"
23- fn_script_log_warn " Default RCON Password detected"
22+ fn_print_warn_nl " Default RCON password detected"
23+ fn_script_log_warn " Default RCON password detected"
24+ elif [ -v httppassword ] && [ " ${httppassword} " == " CHANGE_ME" ]; then
25+ fn_print_warn_nl " Default Web password detected"
26+ fn_script_log_warn " Default Web password detected"
27+ elif [ -v adminpassword ] && [ " ${adminpassword} " == " CHANGE_ME" ]; then
28+ fn_print_warn_nl " Default Admin password detected"
29+ fn_script_log_warn " Default Admin password detected"
30+
2431fi
2532
2633if [ " ${shortname} " == " vh" ] && [ -z " ${serverpassword} " ]; then
Original file line number Diff line number Diff line change @@ -1832,14 +1832,7 @@ fn_info_game_rw() {
18321832# example: hostname "SERVERNAME"
18331833# filetypes: cfg
18341834fn_info_game_samp () {
1835- # Config
1836- if [ ! -f " ${servercfgfullpath} " ]; then
1837- servername=" unnamed server"
1838- rconpassword=" ${unavailable} "
1839- port=" 7777"
1840- rconport=" ${port} "
1841- maxplayers=" 50"
1842- else
1835+ if [ -f " ${servercfgfullpath} " ]; then
18431836 servername=$( grep " hostname" " ${servercfgfullpath} " | sed -e ' s/^[ \t]*//g' -e ' /^\//d' -e ' s/hostname//g' | tr -d ' =\";,:' | sed -e ' s/^[ \t]*//' -e ' s/[ \t]*$//' )
18441837 rconpassword=$( grep " rcon_password" " ${servercfgfullpath} " | sed -e ' s/^[ \t]*//g' -e ' /^#/d' -e ' s/^rcon_password//g' | tr -d ' =\";,:' | sed -e ' s/^[ \t]*//' -e ' s/[ \t]*$//' )
18451838 port=$( grep " port" " ${servercfgfullpath} " | grep -v " #" | tr -cd ' [:digit:]' )
You can’t perform that action at this time.
0 commit comments