From 08b1b14f45be617fe6c417af041ec5e14009be14 Mon Sep 17 00:00:00 2001 From: Stephan Schaffner Date: Fri, 23 Aug 2024 14:41:54 +0200 Subject: [PATCH] Adding Shellscripts for Xonotic --- lgsm/modules/install_server_files.sh | 9 +++++++++ lgsm/modules/update_xonotic.sh | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 lgsm/modules/update_xonotic.sh diff --git a/lgsm/modules/install_server_files.sh b/lgsm/modules/install_server_files.sh index 7ebac259f..3e1004be5 100644 --- a/lgsm/modules/install_server_files.sh +++ b/lgsm/modules/install_server_files.sh @@ -197,6 +197,13 @@ fn_install_server_files() { chmodx="nochmodx" run="norun" force="noforce" md5="93705e165550c97484678236749198a4" + elif [ "${shortname}" == "xonotic" ]; then + remote_fileurl="https://dl.xonotic.org/xonotic-0.8.6.zip" + local_filedir="${tmpdir}" + local_filename="xonotic-0.8.6.zip" + chmodx="nochmodx" run="norun" + force="noforce" + md5="32cdf9f90930e4599177dafc41adda48" elif [ "${shortname}" == "zmr" ]; then remote_fileurl="http://linuxgsm.download/ZombieMasterReborn/zombie_master_reborn_b6_1.tar.xz" local_filedir="${tmpdir}" @@ -247,6 +254,8 @@ elif [ "${shortname}" == "vints" ]; then elif [ "${shortname}" == "ut99" ]; then fn_install_server_files update_ut99.sh +elif [ "${shortname}" == "xonotic" ]; then + update_xonotic.sh elif [ -z "${appid}" ] || [ "${shortname}" == "ahl" ] || [ "${shortname}" == "bb" ] || [ "${shortname}" == "q4" ] || [ "${shortname}" == "ns" ] || [ "${shortname}" == "sfc" ] || [ "${shortname}" == "ts" ] || [ "${shortname}" == "vs" ] || [ "${shortname}" == "zmr" ]; then if [ "${shortname}" == "ut" ]; then install_eula.sh diff --git a/lgsm/modules/update_xonotic.sh b/lgsm/modules/update_xonotic.sh new file mode 100644 index 000000000..2db7d5510 --- /dev/null +++ b/lgsm/modules/update_xonotic.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# LinuxGSM install_steamcmd.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com +# Description: Downloads SteamCMD on install. + +moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + +echo -e "" +echo -e "${bold}${lightyellow}Installing Xonotic${default}" +fn_messages_separator +mkdir -p "${serverfiles}/${selfname}/data" +cp "${serverfiles}/server/server.cfg ${serverfiles}/${selfname}/data/server.cfg"