Просмотр исходного кода

fix(rsdwserver): download default DedicatedServer.ini on install (#4982)

RuneScape: Dragonwilds had no install_config.sh block, so no DedicatedServer.ini was created on install and the details-check (rsdw) CI job failed downloading the default config.

- Download DedicatedServer.ini from Game-Server-Configs (GameServerManagers/Game-Server-Configs#157), set the server and world name, and generate an admin password.
- Update the rsdwserver _default.cfg comment: the INI is now created during install, so OwnerId can be set before the first start.
Daniel Gibbs 1 неделя назад
Родитель
Сommit
bf864f0e86

+ 2 - 1
lgsm/config-default/config-lgsm/rsdwserver/_default.cfg

@@ -12,7 +12,8 @@
 # Server name, passwords, owner ID and world name are read by the server from DedicatedServer.ini, not set here.
 # Edit them in: serverfiles/RSDragonwilds/Saved/Config/LinuxServer/DedicatedServer.ini
 # REQUIRED: the server will not finish starting until OwnerId is set in DedicatedServer.ini
-# (your Player ID, shown in the in-game settings). DedicatedServer.ini is created on first start.
+# (your Player ID, shown in the in-game settings). DedicatedServer.ini is created during install,
+# so OwnerId can be set before the first start.
 port="7777"
 
 ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters

+ 5 - 0
lgsm/modules/install_config.sh

@@ -668,6 +668,11 @@ elif [ "${shortname}" == "ricochet" ]; then
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_list_config_locations
+elif [ "${shortname}" == "rsdw" ]; then
+	array_configs+=(DedicatedServer.ini)
+	fn_default_config_remote
+	fn_set_config_vars
+	fn_list_config_locations
 elif [ "${shortname}" == "rtcw" ]; then
 	array_configs+=(server.cfg)
 	fn_default_config_remote