mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 04:27:35 +08:00
Dependency checking can run as root (#2032)
* Only dependency checks will run as root user when starting the installer e.g `./csgoserver install` * If running dep check as root LinuxGSM will remove any files in `lgsm` that belong to root * Master server check will not run if jq missing
This commit is contained in:
parent
69b71ee661
commit
c05d51fec3
@ -10,11 +10,16 @@ local commandname="CHECK"
|
|||||||
# Every command that requires checks just references check.sh
|
# Every command that requires checks just references check.sh
|
||||||
# check.sh selects which checks to run by using arrays
|
# check.sh selects which checks to run by using arrays
|
||||||
|
|
||||||
check_root.sh
|
if [ "${userinput}" != "install" ]&&[ "${userinput}" != "auto-install" ]&&[ "${userinput}" != "i" ]&&[ "${userinput}" != "ai" ]; then
|
||||||
|
check_root.sh
|
||||||
|
fi
|
||||||
|
|
||||||
check_tmuxception.sh
|
check_tmuxception.sh
|
||||||
|
|
||||||
if [ "${function_selfname}" != "command_monitor.sh" ]; then
|
if [ "$(whoami)" != "root" ]; then
|
||||||
check_permissions.sh
|
if [ "${function_selfname}" != "command_monitor.sh" ]; then
|
||||||
|
check_permissions.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]&&[ "${function_selfname}" != "command_update_linuxgsm.sh" ]&&[ "${function_selfname}" != "command_details.sh" ]&&[ "${function_selfname}" != "command_postdetails.sh" ]; then
|
if [ "${function_selfname}" != "command_install.sh" ]&&[ "${function_selfname}" != "command_update_functions.sh" ]&&[ "${function_selfname}" != "command_update_linuxgsm.sh" ]&&[ "${function_selfname}" != "command_details.sh" ]&&[ "${function_selfname}" != "command_postdetails.sh" ]; then
|
||||||
@ -29,13 +34,15 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
local allowed_commands_array=( command_debug.sh command_start.sh command_install.sh )
|
if [ "$(whoami)" != "root" ]; then
|
||||||
for allowed_command in "${allowed_commands_array[@]}"
|
local allowed_commands_array=( command_debug.sh command_start.sh command_install.sh )
|
||||||
do
|
for allowed_command in "${allowed_commands_array[@]}"
|
||||||
if [ "${allowed_command}" == "${function_selfname}" ]; then
|
do
|
||||||
check_glibc.sh
|
if [ "${allowed_command}" == "${function_selfname}" ]; then
|
||||||
fi
|
check_glibc.sh
|
||||||
done
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
local allowed_commands_array=( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_fastdl.sh command_mods_install.sh command_mods_remove.sh command_mods_update.sh command_monitor.sh command_postdetails.sh command_restart.sh command_start.sh command_stop.sh command_test_alert.sh command_ts3_server_pass.sh command_update.sh command_update_functions.sh command_validate.sh command_wipe.sh command_unreal2_maps.sh command_ut99maps.sh)
|
local allowed_commands_array=( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_fastdl.sh command_mods_install.sh command_mods_remove.sh command_mods_update.sh command_monitor.sh command_postdetails.sh command_restart.sh command_start.sh command_stop.sh command_test_alert.sh command_ts3_server_pass.sh command_update.sh command_update_functions.sh command_validate.sh command_wipe.sh command_unreal2_maps.sh command_ut99maps.sh)
|
||||||
for allowed_command in "${allowed_commands_array[@]}"
|
for allowed_command in "${allowed_commands_array[@]}"
|
||||||
|
@ -179,10 +179,9 @@ fn_deps_email(){
|
|||||||
|
|
||||||
fn_found_missing_deps(){
|
fn_found_missing_deps(){
|
||||||
if [ "${#array_deps_missing[@]}" != "0" ]; then
|
if [ "${#array_deps_missing[@]}" != "0" ]; then
|
||||||
fn_print_dots "Checking dependencies"
|
|
||||||
sleep 0.5
|
fn_print_warning_nl "Missing dependencies: ${red}${array_deps_missing[@]}${default}"
|
||||||
fn_print_error_nl "Checking dependencies: missing: ${red}${array_deps_missing[@]}${default}"
|
fn_script_log_warn "Missing dependencies: ${array_deps_missing[@]}"
|
||||||
fn_script_log_error "Checking dependencies: missing: ${array_deps_missing[@]}"
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
if [ -n "${monostatus}" ]; then
|
if [ -n "${monostatus}" ]; then
|
||||||
fn_install_mono_repo
|
fn_install_mono_repo
|
||||||
@ -257,6 +256,9 @@ fn_found_missing_deps(){
|
|||||||
if [ "${function_selfname}" == "command_install.sh" ]; then
|
if [ "${function_selfname}" == "command_install.sh" ]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
fn_print_information_nl "Required dependencies already installed"
|
||||||
|
fn_script_log_info "Required dependencies already installed"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -482,9 +484,18 @@ fn_deps_build_redhat(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "${function_selfname}" == "command_install.sh" ]; then
|
if [ "${function_selfname}" == "command_install.sh" ]; then
|
||||||
echo ""
|
if [ "$(whoami)" == "root" ]; then
|
||||||
echo "Checking Dependencies"
|
echo ""
|
||||||
echo "================================="
|
echo "Checking Dependencies as root"
|
||||||
|
echo "================================="
|
||||||
|
fn_print_information_nl "Checking any missing dependencies for ${gamename} server only."
|
||||||
|
fn_print_information_nl "This will NOT install a ${gamename} server."
|
||||||
|
sleep 2
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "Checking Dependencies"
|
||||||
|
echo "================================="
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Filter checking in to Debian or Red Hat Based
|
# Filter checking in to Debian or Red Hat Based
|
||||||
|
@ -230,8 +230,10 @@ fn_sys_perm_error_process(){
|
|||||||
# Run perm error detect & fix/alert functions on /sys directories
|
# Run perm error detect & fix/alert functions on /sys directories
|
||||||
|
|
||||||
## Run checks
|
## Run checks
|
||||||
fn_check_ownership
|
if [ "$(whoami)" != "root" ]; then
|
||||||
fn_check_permissions
|
fn_check_ownership
|
||||||
if [ "${function_selfname}" == "command_start.sh" ]; then
|
fn_check_permissions
|
||||||
fn_sys_perm_error_process
|
if [ "${function_selfname}" == "command_start.sh" ]; then
|
||||||
|
fn_sys_perm_error_process
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -8,9 +8,11 @@ local commandname="CHECK"
|
|||||||
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
|
|
||||||
if [ "$(whoami)" = "root" ]; then
|
if [ "$(whoami)" = "root" ]; then
|
||||||
fn_print_fail_nl "Do NOT run this script as root!"
|
if [ "${function_selfname}" != "command_install.sh" ]; then
|
||||||
if [ -d "${lgsmlogdir}" ]; then
|
fn_print_fail_nl "Do NOT run this script as root!"
|
||||||
fn_script_log_fatal "${selfname} attempted to run as root."
|
if [ -d "${lgsmlogdir}" ]; then
|
||||||
|
fn_script_log_fatal "${selfname} attempted to run as root."
|
||||||
|
fi
|
||||||
|
core_exit.sh
|
||||||
fi
|
fi
|
||||||
core_exit.sh
|
|
||||||
fi
|
fi
|
||||||
|
@ -10,37 +10,41 @@ local commandaction="Install"
|
|||||||
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
|
|
||||||
check.sh
|
check.sh
|
||||||
install_header.sh
|
if [ "$(whoami)" = "root" ]; then
|
||||||
install_server_dir.sh
|
check_deps.sh
|
||||||
install_logs.sh
|
else
|
||||||
check_deps.sh
|
install_header.sh
|
||||||
installflag=1
|
install_server_dir.sh
|
||||||
# Download and install
|
install_logs.sh
|
||||||
if [ "${gamename}" == "Unreal Tournament 2004" ]; then
|
check_deps.sh
|
||||||
install_server_files.sh
|
installflag=1
|
||||||
install_ut2k4_key.sh
|
# Download and install
|
||||||
elif [ -z "${appid}" ]; then
|
if [ "${gamename}" == "Unreal Tournament 2004" ]; then
|
||||||
installer=1
|
install_server_files.sh
|
||||||
install_server_files.sh
|
install_ut2k4_key.sh
|
||||||
elif [ -n "${appid}" ]; then
|
elif [ -z "${appid}" ]; then
|
||||||
install_steamcmd.sh
|
installer=1
|
||||||
install_server_files.sh
|
install_server_files.sh
|
||||||
fi
|
elif [ -n "${appid}" ]; then
|
||||||
|
install_steamcmd.sh
|
||||||
|
install_server_files.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
install_config.sh
|
install_config.sh
|
||||||
if [ "${gamename}" == "BrainBread 2" ]||[ "${gamename}" == "Black Mesa: Deathmatch" ]||[ "${gamename}" == "Counter-Strike: Global Offensive" ]||[ "${gamename}" == "Empires Mod" ]||[ "${gamename}" == "Garry’s Mod" ]||[ "${gamename}" == "No more Room in Hell" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "Tower Unite" ]; then
|
if [ "${gamename}" == "BrainBread 2" ]||[ "${gamename}" == "Black Mesa: Deathmatch" ]||[ "${gamename}" == "Counter-Strike: Global Offensive" ]||[ "${gamename}" == "Empires Mod" ]||[ "${gamename}" == "Garry’s Mod" ]||[ "${gamename}" == "No more Room in Hell" ]||[ "${gamename}" == "Team Fortress 2" ]||[ "${gamename}" == "Tower Unite" ]; then
|
||||||
install_gslt.sh
|
install_gslt.sh
|
||||||
elif [ "${gamename}" == "Don't Starve Together" ]; then
|
elif [ "${gamename}" == "Don't Starve Together" ]; then
|
||||||
install_dst_token.sh
|
install_dst_token.sh
|
||||||
elif [ "${gamename}" == "Squad" ]; then
|
elif [ "${gamename}" == "Squad" ]; then
|
||||||
install_squad_license.sh
|
install_squad_license.sh
|
||||||
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
||||||
install_ts3db.sh
|
install_ts3db.sh
|
||||||
elif [ "${gamename}" == "Multi Theft Auto" ]; then
|
elif [ "${gamename}" == "Multi Theft Auto" ]; then
|
||||||
command_install_resources_mta.sh
|
command_install_resources_mta.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fix.sh
|
fix.sh
|
||||||
install_complete.sh
|
install_complete.sh
|
||||||
core_exit.sh
|
core_exit.sh
|
||||||
|
fi
|
@ -14,6 +14,12 @@ fn_exit_dev_debug(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If running dependency check as root will remove any files that belong to root user.
|
||||||
|
if [ "$(whoami)" == "root" ]; then
|
||||||
|
find "${lgsmdir}"/ -group root -prune -exec rm -rf {} + > /dev/null 2>&1
|
||||||
|
find "${logdir}"/ -group root -prune -exec rm -rf {} + > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${exitbypass}" ]; then
|
if [ -n "${exitbypass}" ]; then
|
||||||
unset exitbypass
|
unset exitbypass
|
||||||
elif [ -n "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
|
elif [ -n "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
|
||||||
|
@ -174,13 +174,15 @@ if [ -z "${extip}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Steam Master Server - checks if detected by master server
|
# Steam Master Server - checks if detected by master server
|
||||||
if [ "${ip}" ] && [ "${port}" ]; then
|
if [ ! "$(command -v jq 2>/dev/null)" ]; then
|
||||||
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${shortname}" == "jc2" ]||[ "${shortname}" == "ql" ]; then
|
if [ "${ip}" ] && [ "${port}" ]; then
|
||||||
masterserver=$(${curlpath} -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${ip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l)
|
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${shortname}" == "jc2" ]||[ "${shortname}" == "ql" ]; then
|
||||||
if [ "${steammaster}" == "1" ]; then
|
masterserver=$(${curlpath} -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${ip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l)
|
||||||
masterserver="true"
|
if [ "${steammaster}" == "1" ]; then
|
||||||
else
|
masterserver="true"
|
||||||
masterserver="false"
|
else
|
||||||
|
masterserver="false"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
98
linuxgsm.sh
98
linuxgsm.sh
@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
|
|||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version="180908"
|
version="181007"
|
||||||
shortname="core"
|
shortname="core"
|
||||||
gameservername="core"
|
gameservername="core"
|
||||||
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
@ -38,6 +38,7 @@ tmpdir="${lgsmdir}/tmp"
|
|||||||
configdir="${lgsmdir}/config-lgsm"
|
configdir="${lgsmdir}/config-lgsm"
|
||||||
configdirserver="${configdir}/${gameservername}"
|
configdirserver="${configdir}/${gameservername}"
|
||||||
configdirdefault="${lgsmdir}/config-default"
|
configdirdefault="${lgsmdir}/config-default"
|
||||||
|
userinput="${1}"
|
||||||
|
|
||||||
## GitHub Branch Select
|
## GitHub Branch Select
|
||||||
# Allows for the use of different function files
|
# Allows for the use of different function files
|
||||||
@ -254,9 +255,14 @@ fn_install_file(){
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prevent from running this script as root.
|
# Prevent LinuxGSM from running as root. Except if doing a dependency install.
|
||||||
if [ "$(whoami)" == "root" ]; then
|
if [ "$(whoami)" == "root" ]; then
|
||||||
if [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]; then
|
if [ "${userinput}" == "install" ]||[ "${userinput}" == "auto-install" ]||[ "${userinput}" == "i" ]||[ "${userinput}" == "ai" ]; then
|
||||||
|
if [ "${shortname}" == "core" ]; then
|
||||||
|
echo "[ FAIL ] Do NOT run this script as root!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
elif [ ! -f "${functionsdir}/core_functions.sh" ]||[ ! -f "${functionsdir}/check_root.sh" ]||[ ! -f "${functionsdir}/core_messages.sh" ]; then
|
||||||
echo "[ FAIL ] Do NOT run this script as root!"
|
echo "[ FAIL ] Do NOT run this script as root!"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
@ -267,7 +273,6 @@ fi
|
|||||||
|
|
||||||
# LinuxGSM installer mode
|
# LinuxGSM installer mode
|
||||||
if [ "${shortname}" == "core" ]; then
|
if [ "${shortname}" == "core" ]; then
|
||||||
userinput=$1
|
|
||||||
datadir="${tmpdir}/data"
|
datadir="${tmpdir}/data"
|
||||||
serverlist="${datadir}/serverlist.csv"
|
serverlist="${datadir}/serverlist.csv"
|
||||||
|
|
||||||
@ -310,29 +315,16 @@ if [ "${shortname}" == "core" ]; then
|
|||||||
# LinuxGSM Server Mode
|
# LinuxGSM Server Mode
|
||||||
else
|
else
|
||||||
core_functions.sh
|
core_functions.sh
|
||||||
|
if [ "${shortname}" != "core-dep" ]; then
|
||||||
# Load LinuxGSM configs
|
# Load LinuxGSM configs
|
||||||
# These are required to get all the default variables for the specific server.
|
# These are required to get all the default variables for the specific server.
|
||||||
# Load the default config. If missing download it. If changed reload it.
|
# Load the default config. If missing download it. If changed reload it.
|
||||||
if [ ! -f "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" ]; then
|
if [ ! -f "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" ]; then
|
||||||
mkdir -p "${configdirdefault}/config-lgsm/${gameservername}"
|
mkdir -p "${configdirdefault}/config-lgsm/${gameservername}"
|
||||||
fn_fetch_config "lgsm/config-default/config-lgsm/${gameservername}" "_default.cfg" "${configdirdefault}/config-lgsm/${gameservername}" "_default.cfg" "nochmodx" "norun" "noforcedl" "nomd5"
|
fn_fetch_config "lgsm/config-default/config-lgsm/${gameservername}" "_default.cfg" "${configdirdefault}/config-lgsm/${gameservername}" "_default.cfg" "nochmodx" "norun" "noforcedl" "nomd5"
|
||||||
fi
|
|
||||||
if [ ! -f "${configdirserver}/_default.cfg" ]; then
|
|
||||||
mkdir -p "${configdirserver}"
|
|
||||||
echo -ne " copying _default.cfg...\c"
|
|
||||||
cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg"
|
|
||||||
exitcode=$?
|
|
||||||
if [ ${exitcode} -ne 0 ]; then
|
|
||||||
echo -e "FAIL"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo -e "OK"
|
|
||||||
fi
|
fi
|
||||||
else
|
if [ ! -f "${configdirserver}/_default.cfg" ]; then
|
||||||
function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg")
|
mkdir -p "${configdirserver}"
|
||||||
if [ "${function_file_diff}" != "" ]; then
|
|
||||||
fn_print_warn_nl "_default.cfg has been altered. reloading config."
|
|
||||||
echo -ne " copying _default.cfg...\c"
|
echo -ne " copying _default.cfg...\c"
|
||||||
cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg"
|
cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg"
|
||||||
exitcode=$?
|
exitcode=$?
|
||||||
@ -342,27 +334,41 @@ else
|
|||||||
else
|
else
|
||||||
echo -e "OK"
|
echo -e "OK"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg")
|
||||||
|
if [ "${function_file_diff}" != "" ]; then
|
||||||
|
fn_print_warn_nl "_default.cfg has been altered. reloading config."
|
||||||
|
echo -ne " copying _default.cfg...\c"
|
||||||
|
cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg"
|
||||||
|
exitcode=$?
|
||||||
|
if [ ${exitcode} -ne 0 ]; then
|
||||||
|
echo -e "FAIL"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo -e "OK"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
source "${configdirserver}/_default.cfg"
|
||||||
|
# Load the common.cfg config. If missing download it
|
||||||
|
if [ ! -f "${configdirserver}/common.cfg" ]; then
|
||||||
|
fn_fetch_config "lgsm/config-default/config-lgsm" "common-template.cfg" "${configdirserver}" "common.cfg" "${chmodx}" "nochmodx" "norun" "noforcedl" "nomd5"
|
||||||
|
source "${configdirserver}/common.cfg"
|
||||||
|
else
|
||||||
|
source "${configdirserver}/common.cfg"
|
||||||
|
fi
|
||||||
|
# Load the instance.cfg config. If missing download it
|
||||||
|
if [ ! -f "${configdirserver}/${servicename}.cfg" ]; then
|
||||||
|
fn_fetch_config "lgsm/config-default/config-lgsm" "instance-template.cfg" "${configdirserver}" "${servicename}.cfg" "nochmodx" "norun" "noforcedl" "nomd5"
|
||||||
|
source "${configdirserver}/${servicename}.cfg"
|
||||||
|
else
|
||||||
|
source "${configdirserver}/${servicename}.cfg"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
source "${configdirserver}/_default.cfg"
|
|
||||||
# Load the common.cfg config. If missing download it
|
|
||||||
if [ ! -f "${configdirserver}/common.cfg" ]; then
|
|
||||||
fn_fetch_config "lgsm/config-default/config-lgsm" "common-template.cfg" "${configdirserver}" "common.cfg" "${chmodx}" "nochmodx" "norun" "noforcedl" "nomd5"
|
|
||||||
source "${configdirserver}/common.cfg"
|
|
||||||
else
|
|
||||||
source "${configdirserver}/common.cfg"
|
|
||||||
fi
|
|
||||||
# Load the instance.cfg config. If missing download it
|
|
||||||
if [ ! -f "${configdirserver}/${servicename}.cfg" ]; then
|
|
||||||
fn_fetch_config "lgsm/config-default/config-lgsm" "instance-template.cfg" "${configdirserver}" "${servicename}.cfg" "nochmodx" "norun" "noforcedl" "nomd5"
|
|
||||||
source "${configdirserver}/${servicename}.cfg"
|
|
||||||
else
|
|
||||||
source "${configdirserver}/${servicename}.cfg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Load the linuxgsm.sh in to tmpdir. If missing download it
|
# Load the linuxgsm.sh in to tmpdir. If missing download it
|
||||||
if [ ! -f "${tmpdir}/linuxgsm.sh" ]; then
|
if [ ! -f "${tmpdir}/linuxgsm.sh" ]; then
|
||||||
fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "chmodx" "norun" "noforcedl" "nomd5"
|
fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "chmodx" "norun" "noforcedl" "nomd5"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Enables ANSI colours from core_messages.sh. Can be disabled with ansi=off
|
# Enables ANSI colours from core_messages.sh. Can be disabled with ansi=off
|
||||||
fn_ansi_loader
|
fn_ansi_loader
|
||||||
@ -371,4 +377,4 @@ else
|
|||||||
getopt=$1
|
getopt=$1
|
||||||
core_getopt.sh
|
core_getopt.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user