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"
13
13
port =" 27102"
14
14
queryport =" 27131"
15
15
rconport =" 27015"
16
- rconpassword =" "
16
+ rconpassword =" CHANGE_ME "
17
17
servername =" LinuxGSM"
18
18
defaultmap =" Oilfield"
19
19
defaultscenario =" Scenario_Refinery_Push_Security"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ defaultmap="co_core"
15
15
maxplayers =" 24"
16
16
servername =" LinuxGSM"
17
17
httpuser =" admin"
18
- httppassword =" admin "
18
+ httppassword =" CHANGE_ME "
19
19
httpport =" 8080"
20
20
mods =" "
21
21
serverpassword =" "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ maxplayers="20"
16
16
maxspectators =" 5"
17
17
servername =" LinuxGSM"
18
18
httpuser =" admin"
19
- httppassword =" admin "
19
+ httppassword =" CHANGE_ME "
20
20
httpport =" 8080"
21
21
modserverport =" 27031"
22
22
serverpassword =" "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ homekingdom="4"
27
27
28
28
# Unlocks the admin commands from within the game, that can be used to change
29
29
# the gameplay settings of the server, such as skill gain rate and field growth time.
30
- adminpassword =" ADMINPASSWORD "
30
+ adminpassword =" CHANGE_ME "
31
31
32
32
# If true the server will follow the rules from the Epic servers in Wurm Online.
33
33
# 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}"
19
19
fn_print_fail_nl " RCON password is not set"
20
20
fn_script_log_warn " RCON password is not set"
21
21
elif [ -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
+
24
31
fi
25
32
26
33
if [ " ${shortname} " == " vh" ] && [ -z " ${serverpassword} " ]; then
Original file line number Diff line number Diff line change @@ -1832,14 +1832,7 @@ fn_info_game_rw() {
1832
1832
# example: hostname "SERVERNAME"
1833
1833
# filetypes: cfg
1834
1834
fn_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
1843
1836
servername=$( grep " hostname" " ${servercfgfullpath} " | sed -e ' s/^[ \t]*//g' -e ' /^\//d' -e ' s/hostname//g' | tr -d ' =\";,:' | sed -e ' s/^[ \t]*//' -e ' s/[ \t]*$//' )
1844
1837
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]*$//' )
1845
1838
port=$( grep " port" " ${servercfgfullpath} " | grep -v " #" | tr -cd ' [:digit:]' )
You can’t perform that action at this time.
0 commit comments