From 4a24c9c314fed25f6dafc42b87628417c88168fc Mon Sep 17 00:00:00 2001 From: Elyviere Date: Tue, 8 Oct 2024 06:43:44 +0200 Subject: [PATCH] Update documentation for changes to updating game server --- docs/usage.rst | 25 ++++++++++++++++--- .../plugins.d/Game_Server/update_server.py | 5 ++-- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 03f44e7..33cb1ee 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -68,11 +68,11 @@ Method 1: #. SSH into the appliance and run the command ``confconsole``. -#. Select ``Advanced`` menu or press the ``A`` key. +#. Select ``Advanced`` menu or press the ``A`` key and then . -#. Select ``Gameserver`` or press the ``G`` key. +#. Select ``Gameserver`` or press the ``G`` key and then . -#. Select ``Update`` or press the ``U`` key. +#. Select ``Update list`` or press the ``U`` key and then . #. Done! @@ -99,8 +99,25 @@ Done! Update game server version ---------------------------- -If there is an update to the game after deploying your server, you may need to update the server to allow clients with the newer version to connect. Currently, the GUI does not support updating the server version. Instead, follow the following procedure: +If there is an update to the game after deploying your server, you may need to update the server to allow clients with the newer version to connect. Like with updating the game server list, this can either be done through the GUI or manually. Here are instructions for the two methods: +Method 1: +^^^^^^^^^^^ + +#. SSH into the appliance and run the command ``confconsole``. + +#. Select ``Advanced`` menu or press the ``A`` key and then . + +#. Select ``Gameserver`` or press the ``G`` key and then . + +#. Select ``Update server`` or press the ``U`` key **twice** and then . + +#. Be patient, the update can take a few minutes. + +#. Done! + +Method 2: +^^^^^^^^^^^ #. Find your installed game server on the [supported games](https://github.com/jesinmat/linux-gameservers/tree/master#supported-games) list. You will need the "Code" shown in this list. diff --git a/overlay/usr/lib/confconsole/plugins.d/Game_Server/update_server.py b/overlay/usr/lib/confconsole/plugins.d/Game_Server/update_server.py index 7f00996..6a0ec50 100755 --- a/overlay/usr/lib/confconsole/plugins.d/Game_Server/update_server.py +++ b/overlay/usr/lib/confconsole/plugins.d/Game_Server/update_server.py @@ -36,13 +36,12 @@ def run(): os.chdir(curdir) return - console.infobox('Attemting to update game server') + console.infobox('Attemting to update game server. Be patient, this takes at least a few minutes...') ret = subprocess.run( ['./auto_install.sh', '-g', game_code, '-u', 'gameuser', '-p', '/home/gameuser/gameserver'], capture_output=True, text=True) if ret.returncode != 0: - console.msgbox('Error', 'An error occurred during the update:\n' + ret.stderr) - # Attempt to restart the game server even if issues occurred during the update + console.msgbox('Error', 'An error occurred during the update (will attempt to restart the server regardless):\n' + ret.stderr) console.infobox('Restarting the game server') ret = subprocess.run(['systemctl', 'start', 'gameserver'], capture_output=True, text=True)