Browse Source

move to fix

pull/4633/head
Daniel Gibbs 12 months ago
parent
commit
a572c21fed
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 2
      lgsm/modules/command_install.sh
  2. 5
      lgsm/modules/core_modules.sh
  3. 2
      lgsm/modules/fix.sh
  4. 18
      lgsm/modules/fix_xnt.sh
  5. 14
      lgsm/modules/install_xnt.sh

2
lgsm/modules/command_install.sh

@ -46,8 +46,6 @@ else
elif [ "${shortname}" == "mta" ]; then
command_install_resources_mta.sh
fn_firstcommand_reset
elif [ "${shortname}" == "xnt" ]; then
install_xnt.sh
fi
fix.sh

5
lgsm/modules/core_modules.sh

@ -531,6 +531,11 @@ fix_wurm.sh() {
fn_fetch_module
}
fix_xmt.sh() {
modulefile="${FUNCNAME[0]}"
fn_fetch_module
}
fix_zmr.sh() {
modulefile="${FUNCNAME[0]}"
fn_fetch_module

2
lgsm/modules/fix.sh

@ -52,7 +52,7 @@ fn_apply_fix() {
fi
}
apply_pre_start_fix=(arma3 armar ark av bt bo csgo cmw dst hw ins kf nmrih onset pvr ro rust rw samp sdtd sfc sm sof2 squad st tf2 terraria ts3 mcb mta unt vh wurm zmr)
apply_pre_start_fix=(arma3 armar ark av bt bo csgo cmw dst hw ins kf nmrih onset pvr ro rust rw samp sdtd sfc sm sof2 squad st tf2 terraria ts3 mcb mta unt vh wurm xnt zmr)
apply_post_install_fix=(av kf kf2 ro ut2k4 ut ut3)
# validate registered fixes for safe development

18
lgsm/modules/fix_xnt.sh

@ -0,0 +1,18 @@
#!/bin/bash
# LinuxGSM fix_xnt.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Install Xonotic Default Config
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Create the directory if it doesn't exist
if [ ! -d "${serverfiles}/Xonotic/${selfname}/data" ]; then
mkdir -p "${serverfiles}/Xonotic/${selfname}/data"
fi
# Copy the server.cfg file if it exists
if [ -f "${serverfiles}/Xonotic/server/server.cfg" ]; then
cp "${serverfiles}/Xonotic/server/server.cfg" "${serverfiles}/Xonotic/${selfname}/data/server.cfg"
fi

14
lgsm/modules/install_xnt.sh

@ -1,14 +0,0 @@
#!/bin/bash
# LinuxGSM install_xnt module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Install Xonotic Default Config
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo -e ""
echo -e "${bold}${lightyellow}Installing Xonotic${default}"
fn_messages_separator
mkdir -p "${serverfiles}/Xonotic/${selfname}/data"
cp "${serverfiles}/Xonotic/server/server.cfg ${serverfiles}/Xonotic/${selfname}/data/server.cfg"
Loading…
Cancel
Save