Browse Source

altered steamcmd install

now goes via update_steamcmd.sh
pull/4165/head
Daniel Gibbs 5 years ago
parent
commit
da1cc2d7fd
  1. 20
      lgsm/functions/install_modules.sh
  2. 3
      lgsm/functions/install_server_files.sh
  3. 2
      lgsm/functions/update_steamcmd.sh

20
lgsm/functions/install_modules.sh

@ -1,20 +0,0 @@
#!/bin/bash
# LinuxGSM install_modules.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Downloads all modules on install.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo -e ""
echo -e "${lightyellow}Downloading LinuxGSM Modules${default}"
echo -e "================================="
fn_fetch_file "https://github.com/GameServerManagers/LinuxGSM/archive/master.tar.gz" "${tmpdir}" "master.tar.gz" "nochmodx" "norun" "noforce" "nohash"
fn_dl_extract "${tmpdir}" "master.tar.gz" "${tmpdir}"
cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.sh "${functionsdir}"
cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.py "${functionsdir}"
chmod +x "${functionsdir}"/*
command_update_linuxgsm.sh
fn_firstcommand_reset

3
lgsm/functions/install_server_files.sh

@ -73,7 +73,8 @@ echo -e "================================="
fn_sleep_time
if [ "${appid}" ]; then
fn_dl_steamcmd
forceupdate=1
update_steamcmd.sh
fi
if [ "${shortname}" == "ts3" ]; then

2
lgsm/functions/update_steamcmd.sh

@ -18,7 +18,7 @@ fn_print_dots "${remotelocation}"
if [ "${forceupdate}" == "1" ]; then
# forceupdate bypasses update checks.
if [ "${status}" != "0" ]; then
if [ "${status}" != "0" ]&&[ -v "${status}" ]; then
fn_print_restart_warning
exitbypass=1
command_stop.sh

Loading…
Cancel
Save