111 changed files with 1535 additions and 1368 deletions
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_ip function |
# LGSM check_ip.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Automatically identifies the server interface IP. |
# Description: Automatically identifies the server interface IP. |
||||
# If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0". |
# If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0". |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_root function |
# LGSM check_root.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ $(whoami) = "root" ]; then |
if [ $(whoami) = "root" ]; then |
||||
fn_printfailnl "Do NOT run this script as root!" |
fn_printfailnl "Do NOT run this script as root!" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_steamcmd function |
# LGSM check_steamcmd.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD |
# Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_steamuser function |
# LGSM check_steamuser.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ "${steamuser}" == "username" ]; then |
if [ "${steamuser}" == "username" ]; then |
||||
fn_printfailnl "Steam login not set. Update steamuser." |
fn_printfailnl "Steam login not set. Update steamuser." |
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_systemdir function |
# LGSM check_systemdir.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ ! -e "${systemdir}" ]; then |
if [ ! -d "${systemdir}" ]; then |
||||
fn_printfailnl "Cannot access ${systemdir}: No such directory" |
fn_printfailnl "Cannot access ${systemdir}: No such directory" |
||||
exit 1 |
exit 1 |
||||
fi |
fi |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_tmux function |
# LGSM check_tmux.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Checks if tmux is installed as too many users do not RTFM or know how to use Google. |
# Checks if tmux is installed as too many users do not RTFM or know how to use Google. |
||||
|
|
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_compress_unreal2maps function |
# LGSM compress_unreal2_maps.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
fn_check_root |
check_root.sh |
||||
clear |
clear |
||||
echo "${gamename} Map Compressor" |
echo "${gamename} Map Compressor" |
||||
echo "============================" |
echo "============================" |
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_compress_ut99maps function |
# LGSM compress_ut99_maps.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
fn_check_root |
check_root.sh |
||||
clear |
clear |
||||
echo "${gamename} Map Compressor" |
echo "${gamename} Map Compressor" |
||||
echo "============================" |
echo "============================" |
@ -0,0 +1,373 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM core_functions.sh function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://gameservermanagers.com |
||||
|
lgsm_version="271215" |
||||
|
|
||||
|
# Description: Defines all functions to allow download and execution of functions using fn_runfunction. |
||||
|
# This function is called first before any other function. Without this file other functions would not load. |
||||
|
|
||||
|
#Legacy functions |
||||
|
|
||||
|
fn_functions(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
fn_getopt(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Core |
||||
|
|
||||
|
core_getopt.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
core_messages.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Command |
||||
|
|
||||
|
command_console.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_debug.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_details.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_backup.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_monitor.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_start.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_stop.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_validate.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
command_install.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
fn_restart(){ |
||||
|
local modulename="Restarting" |
||||
|
info_config.sh |
||||
|
fn_scriptlog "${servername}" |
||||
|
command_stop.sh |
||||
|
command_start.sh |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Checks |
||||
|
|
||||
|
check.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_ip.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_logs.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_root.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_steamcmd.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_steamuser.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_systemdir.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
check_tmux.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Compress |
||||
|
|
||||
|
compress_unreal2_maps.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
compress_ut99_maps.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Dev |
||||
|
|
||||
|
dev_debug.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
dev_detect_deps.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Fix |
||||
|
|
||||
|
fix_arma3.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
fix_csgo.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
fix_ins.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Info |
||||
|
|
||||
|
info_config.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
info_distro.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
info_glibc.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
info_ts3status.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Email |
||||
|
|
||||
|
email.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
email_test.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Logs |
||||
|
|
||||
|
logs.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Monitor |
||||
|
|
||||
|
monitor_gsquery.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# Update |
||||
|
|
||||
|
update_check.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
update_functions.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
update_dl.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
update_functions.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
|
||||
|
# |
||||
|
## Installer functions |
||||
|
# |
||||
|
|
||||
|
fn_autoinstall(){ |
||||
|
autoinstall=1 |
||||
|
command_install.sh |
||||
|
} |
||||
|
|
||||
|
install_complete.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_config.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
fix_glibc.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_gsquery.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_gslt.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_header.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_fix_kf.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_logs.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_retry.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_fix_ro.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_serverdir.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
install_serverfiles.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_steamcmd.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_fix_steam.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_ts3.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_ut2k4.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_dl_ut2k4.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_fix_ut2k4.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_ut2k4_key.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_ut99.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_dl_ut99.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
install_fix_ut99.sh(){ |
||||
|
functionfile="${FUNCNAME}" |
||||
|
fn_runfunction |
||||
|
} |
||||
|
|
||||
|
# Calls on-screen messages |
||||
|
core_messages.sh |
@ -0,0 +1,427 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM core_getopt.sh function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://gameservermanagers.com |
||||
|
lgsm_version="271215" |
||||
|
|
||||
|
# Description: getopt arguments. |
||||
|
|
||||
|
fn_getopt_generic(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
u|update) |
||||
|
update_check.sh;; |
||||
|
fu|force-update|update-restart) |
||||
|
forceupdate=1; |
||||
|
update_check.sh;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
v|validate) |
||||
|
command_validate.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
c|console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
ai|auto-install) |
||||
|
fn_autoinstall;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
fn_getopt_teamspeak3(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
u|update) |
||||
|
update_check.sh;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
ai|auto-install) |
||||
|
fn_autoinstall;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from teamspeak.com." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
fn_getopt_mumble(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
fn_getopt_gmodserver(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
u|update) |
||||
|
update_check.sh;; |
||||
|
fu|force-update|update-restart) |
||||
|
forceupdate=1; |
||||
|
update_check.sh;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
v|validate) |
||||
|
command_validate.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
c|console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
ai|auto-install) |
||||
|
fn_autoinstall;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
gc|gmod-content) |
||||
|
fn_content_gmod;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
||||
|
echo -e "\e[34mgmod-content\t\e[0mDownload gmod add-on content." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
fn_getopt_unreal(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
c|console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
mc|map-compressor) |
||||
|
compress_ut99_maps.sh;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
|
||||
|
fn_getopt_unreal2(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
u|update) |
||||
|
update_check.sh;; |
||||
|
fu|force-update|update-restart) |
||||
|
forceupdate=1; |
||||
|
update_check.sh;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
v|validate) |
||||
|
command_validate.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
c|console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
ai|auto-install) |
||||
|
fn_autoinstall;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
mc|map-compressor) |
||||
|
compress_unreal2_maps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
||||
|
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
|
||||
|
fn_getopt_ut2k4(){ |
||||
|
case "$getopt" in |
||||
|
st|start) |
||||
|
command_start.sh;; |
||||
|
sp|stop) |
||||
|
command_stop.sh;; |
||||
|
r|restart) |
||||
|
fn_restart;; |
||||
|
uf|update-functions) |
||||
|
update_functions.sh;; |
||||
|
m|monitor) |
||||
|
command_monitor.sh;; |
||||
|
et|email-test) |
||||
|
email_test.sh;; |
||||
|
d|details) |
||||
|
command_details.sh;; |
||||
|
b|backup) |
||||
|
command_backup.sh;; |
||||
|
c|console) |
||||
|
command_console.sh;; |
||||
|
d|debug) |
||||
|
command_debug.sh;; |
||||
|
dev|dev-debug) |
||||
|
dev_debug.sh;; |
||||
|
i|install) |
||||
|
command_install.sh;; |
||||
|
mc|map-compressor) |
||||
|
compress_ut99_maps.sh;; |
||||
|
dd|depsdetect) |
||||
|
dev_detect_deps.sh;; |
||||
|
*) |
||||
|
echo "Usage: $0 [option]" |
||||
|
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
||||
|
echo "http://gameservermanagers.com/${selfname}" |
||||
|
echo -e "" |
||||
|
echo -e "\e[93mCommands\e[0m" |
||||
|
{ |
||||
|
echo -e "\e[34mstart\t\e[0mStart the server." |
||||
|
echo -e "\e[34mstop\t\e[0mStop the server." |
||||
|
echo -e "\e[34mrestart\t\e[0mRestart the server." |
||||
|
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
||||
|
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
||||
|
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
||||
|
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
||||
|
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
||||
|
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
||||
|
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
||||
|
echo -e "\e[34minstall\t\e[0mInstall the server." |
||||
|
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
||||
|
} | column -s $'\t' -t |
||||
|
esac |
||||
|
exit |
||||
|
} |
||||
|
|
||||
|
if [ "${gamename}" == "Mumble" ]; then |
||||
|
fn_getopt__mumble |
||||
|
elif [ "${gamename}" == "Teamspeak 3" ]; then |
||||
|
fn_getopt_teamspeak3 |
||||
|
elif [ "${engine}" == "unreal2" ]; then |
||||
|
if [ "${gamename}" == "Unreal Tournament 2004" ]; then |
||||
|
fn_getopt_ut2k4 |
||||
|
else |
||||
|
fn_getopt_unreal2 |
||||
|
fi |
||||
|
elif [ "${engine}" == "unreal" ]; then |
||||
|
fn_getopt_unreal |
||||
|
else |
||||
|
fn_getopt_generic |
||||
|
fi |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_debug_dev function |
# LGSM dev_debug.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ -f ".dev-debug" ]; then |
if [ -f ".dev-debug" ]; then |
||||
rm .dev-debug |
rm .dev-debug |
@ -1,21 +1,21 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_email_test function |
# LGSM email_test.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Sends a test email notification. |
# Description: Sends a test email notification. |
||||
|
|
||||
local modulename="Email" |
local modulename="Email" |
||||
fn_check_root |
check_root.sh |
||||
fn_check_systemdir |
check_systemdir.sh |
||||
fn_details_config |
info_config.sh |
||||
if [ "${emailnotification}" = "on" ]; then |
if [ "${emailnotification}" = "on" ]; then |
||||
fn_scriptlog "Sending test notification" |
fn_scriptlog "Sending test notification" |
||||
subject="${servicename} Email Test Notification - Testing ${servername}" |
subject="${servicename} Email Test Notification - Testing ${servername}" |
||||
failurereason="Testing ${servicename} email notification" |
failurereason="Testing ${servicename} email notification" |
||||
actiontaken="Sent test email...hello is this thing on?" |
actiontaken="Sent test email...hello is this thing on?" |
||||
fn_email |
email.sh |
||||
else |
else |
||||
fn_printfailnl "Notifications not enabled" |
fn_printfailnl "Notifications not enabled" |
||||
fn_scriptlog "Notifications not enabled" |
fn_scriptlog "Notifications not enabled" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_arma3fix function |
# LGSM fix_arma3.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
# Fixes line 63: 20150 Segmentation fault (core dumped) #488 |
# Fixes line 63: 20150 Segmentation fault (core dumped) #488 |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_csgofix function |
# LGSM fix_csgo.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Resolves various issues with csgo. |
# Description: Resolves various issues with csgo. |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_glibcfix function |
# LGSM fix_glibc.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
fn_glibcfixmsg(){ |
fn_glibcfixmsg(){ |
||||
echo "" |
echo "" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_insfix function |
# LGSM fix_ins.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Resolves various issues with Insurgency. |
# Description: Resolves various issues with Insurgency. |
||||
|
|
@ -1,328 +1,20 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_functions function |
# LGSM core_functions.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="251215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Defines all functions to allow download and execution of functions using fn_runfunction. |
# Description: Redirect to new core_functions.sh |
||||
# This function is called first before any other function. Without this file other functions would not load. |
|
||||
|
|
||||
fn_arma3fix(){ |
core_functions.sh(){ |
||||
|
# Functions are defined in core_functions.sh. |
||||
functionfile="${FUNCNAME}" |
functionfile="${FUNCNAME}" |
||||
fn_runfunction |
fn_runfunction |
||||
} |
} |
||||
|
|
||||
fn_backup(){ |
core_getopt.sh(){ |
||||
functionfile="${FUNCNAME}" |
functionfile="${FUNCNAME}" |
||||
fn_runfunction |
fn_runfunction |
||||
} |
} |
||||
|
|
||||
fn_check_ip(){ |
core_functions.sh |
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_logs(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_root(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_steamcmd(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_steamuser(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_systemdir(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_tmux(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_check_ts3status(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_console(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_compress_unreal2maps(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_compress_ut99maps(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_csgofix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_debug(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_details(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_details_config(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_details_distro(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_details_glibc(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_debug_dev(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_deps_detect(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_email(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_email_test(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_getopt(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_insfix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_logs(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_messages(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_monitor(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_monitor_query(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_restart(){ |
|
||||
local modulename="Restarting" |
|
||||
fn_details_config |
|
||||
fn_scriptlog "${servername}" |
|
||||
fn_stop |
|
||||
fn_start |
|
||||
} |
|
||||
|
|
||||
fn_start(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_stop(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_update_check(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_update_functions(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_update_dl(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_update_functions(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_validate(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
# |
|
||||
## Installer functions |
|
||||
# |
|
||||
|
|
||||
fn_autoinstall(){ |
|
||||
autoinstall=1 |
|
||||
fn_install |
|
||||
} |
|
||||
|
|
||||
fn_install(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_complete(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_config(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_glibcfix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_gsquery(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_gslt(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_header(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_kffix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_logs(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_retry(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_rofix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_serverdir(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_serverfiles(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_steamcmd(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_steamfix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ts3(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ts3db(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut2k4(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut2k4filesdl(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut2k4fix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut2k4key(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut99(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut99filesdl(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
fn_install_ut99fix(){ |
|
||||
functionfile="${FUNCNAME}" |
|
||||
fn_runfunction |
|
||||
} |
|
||||
|
|
||||
# Calls on-screen messages |
|
||||
fn_messages |
|
@ -1,427 +1,15 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_getopt function |
# LGSM core_getopt.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Description: getopt arguments. |
# Description: Redirect to new core_getopt.sh |
||||
|
|
||||
fn_getopt_generic(){ |
core_getopt.sh(){ |
||||
case "$getopt" in |
# Functions are defined in core_functions.sh. |
||||
st|start) |
functionfile="${FUNCNAME}" |
||||
fn_start;; |
fn_runfunction |
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
u|update) |
|
||||
fn_update_check;; |
|
||||
fu|force-update|update-restart) |
|
||||
forceupdate=1; |
|
||||
fn_update_check;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
v|validate) |
|
||||
fn_validate;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
c|console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
ai|auto-install) |
|
||||
fn_autoinstall;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
} |
||||
|
|
||||
fn_getopt_teamspeak3(){ |
core_getopt.sh |
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
u|update) |
|
||||
fn_update_check;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
ai|auto-install) |
|
||||
fn_autoinstall;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from teamspeak.com." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
fn_getopt_mumble(){ |
|
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
fn_getopt_gmodserver(){ |
|
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
u|update) |
|
||||
fn_update_check;; |
|
||||
fu|force-update|update-restart) |
|
||||
forceupdate=1; |
|
||||
fn_update_check;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
v|validate) |
|
||||
fn_validate;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
c|console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
ai|auto-install) |
|
||||
fn_autoinstall;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
gc|gmod-content) |
|
||||
fn_content_gmod;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
|
||||
echo -e "\e[34mgmod-content\t\e[0mDownload gmod add-on content." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
fn_getopt_unreal(){ |
|
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
c|console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
mc|map-compressor) |
|
||||
fn_compress_ut99maps;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
|
|
||||
fn_getopt_unreal2(){ |
|
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
u|update) |
|
||||
fn_update_check;; |
|
||||
fu|force-update|update-restart) |
|
||||
forceupdate=1; |
|
||||
fn_update_check;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
v|validate) |
|
||||
fn_validate;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
c|console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
ai|auto-install) |
|
||||
fn_autoinstall;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
mc|map-compressor) |
|
||||
fn_compress_unreal2maps;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." |
|
||||
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
|
|
||||
fn_getopt_ut2k4(){ |
|
||||
case "$getopt" in |
|
||||
st|start) |
|
||||
fn_start;; |
|
||||
sp|stop) |
|
||||
fn_stop;; |
|
||||
r|restart) |
|
||||
fn_restart;; |
|
||||
uf|update-functions) |
|
||||
fn_update_functions;; |
|
||||
m|monitor) |
|
||||
fn_monitor;; |
|
||||
et|email-test) |
|
||||
fn_email_test;; |
|
||||
d|details) |
|
||||
fn_details;; |
|
||||
b|backup) |
|
||||
fn_backup;; |
|
||||
c|console) |
|
||||
fn_console;; |
|
||||
d|debug) |
|
||||
fn_debug;; |
|
||||
dev|dev-debug) |
|
||||
fn_debug_dev;; |
|
||||
i|install) |
|
||||
fn_install;; |
|
||||
mc|map-compressor) |
|
||||
fn_compress_ut99maps;; |
|
||||
dd|depsdetect) |
|
||||
fn_deps_detect;; |
|
||||
*) |
|
||||
echo "Usage: $0 [option]" |
|
||||
echo "${gamename} - Linux Game Server Manager - Version ${version}" |
|
||||
echo "http://gameservermanagers.com/${selfname}" |
|
||||
echo -e "" |
|
||||
echo -e "\e[93mCommands\e[0m" |
|
||||
{ |
|
||||
echo -e "\e[34mstart\t\e[0mStart the server." |
|
||||
echo -e "\e[34mstop\t\e[0mStop the server." |
|
||||
echo -e "\e[34mrestart\t\e[0mRestart the server." |
|
||||
echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded." |
|
||||
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." |
|
||||
echo -e "\e[34memail-test\t\e[0mSends test monitor email." |
|
||||
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." |
|
||||
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." |
|
||||
echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server." |
|
||||
echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal." |
|
||||
echo -e "\e[34minstall\t\e[0mInstall the server." |
|
||||
echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps." |
|
||||
} | column -s $'\t' -t |
|
||||
esac |
|
||||
exit |
|
||||
} |
|
||||
|
|
||||
if [ "${gamename}" == "Mumble" ]; then |
|
||||
fn_getopt_mumble |
|
||||
elif [ "${gamename}" == "Teamspeak 3" ]; then |
|
||||
fn_getopt_teamspeak3 |
|
||||
elif [ "${engine}" == "unreal2" ]; then |
|
||||
if [ "${gamename}" == "Unreal Tournament 2004" ]; then |
|
||||
fn_getopt_ut2k4 |
|
||||
else |
|
||||
fn_getopt_unreal2 |
|
||||
fi |
|
||||
elif [ "${engine}" == "unreal" ]; then |
|
||||
fn_getopt_unreal |
|
||||
else |
|
||||
fn_getopt_generic |
|
||||
fi |
|
@ -1,11 +1,11 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_details_distro function |
# LGSM info_distro.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="211215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Variables providing useful info on the Operating System such as disk and performace info. |
# Description: Variables providing useful info on the Operating System such as disk and performace info. |
||||
# Used for fn_details, fn_debug and fn_email. |
# Used for command_details.sh, command_debug.sh and email.sh. |
||||
|
|
||||
## Distro infomation |
## Distro infomation |
||||
# Returns architecture, kernel and distro/os. |
# Returns architecture, kernel and distro/os. |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_details_glibc function |
# LGSM info_glibc.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Description: stores details on servers Glibc requirements. |
# Description: stores details on servers Glibc requirements. |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_check_ts3status function |
# LGSM info_ts3status.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
# Checks the status of Teamspeak 3. |
# Checks the status of Teamspeak 3. |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_complete function |
# LGSM install_complete.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ "${gamename}" == "Dont Starve Together" ]; then |
if [ "${gamename}" == "Dont Starve Together" ]; then |
||||
echo "" |
echo "" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_config function |
# LGSM install_config.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="251215" |
lgsm_version="271215" |
||||
|
|
||||
fn_defaultconfig(){ |
fn_defaultconfig(){ |
||||
echo "creating ${servercfg} config file." |
echo "creating ${servercfg} config file." |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_ut99filesdl function |
# LGSM install_dl_ut99.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
echo "Downloading Server Files" |
echo "Downloading Server Files" |
||||
echo "=================================" |
echo "=================================" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_steamfix function |
# LGSM install_fix_steam.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
fn_steamclientfix(){ |
fn_steamclientfix(){ |
||||
echo "" |
echo "" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_ut99fix function |
# LGSM install_fix_ut99.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
echo "Applying ${gamename} Server Fixes" |
echo "Applying ${gamename} Server Fixes" |
||||
echo "=================================" |
echo "=================================" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_gslt function |
# LGSM install_gslt.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="091215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Configures GSLT. |
# Description: Configures GSLT. |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_gsquery function |
# LGSM install_gsquery.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="221215" |
lgsm_version="271215" |
||||
|
|
||||
fn_dlgsquery(){ |
fn_dlgsquery(){ |
||||
cd "${rootdir}" |
cd "${rootdir}" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_header function |
# LGSM install_header.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
clear |
clear |
||||
echo "=================================" |
echo "=================================" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_logs function |
# LGSM install_logs.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
if [ "${checklogs}" != "1" ]; then |
if [ "${checklogs}" != "1" ]; then |
||||
echo "" |
echo "" |
@ -1,13 +1,13 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_retry function |
# LGSM install_retry.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="061115" |
lgsm_version="271215" |
||||
|
|
||||
while true; do |
while true; do |
||||
read -e -i "y" -p "Retry install? [Y/n]" yn |
read -e -i "y" -p "Retry install? [Y/n]" yn |
||||
case $yn in |
case $yn in |
||||
[Yy]* ) fn_install; exit;; |
[Yy]* ) command_install.sh; exit;; |
||||
[Nn]* ) echo Exiting; exit;; |
[Nn]* ) echo Exiting; exit;; |
||||
* ) echo "Please answer yes or no.";; |
* ) echo "Please answer yes or no.";; |
||||
esac |
esac |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_serverdir function |
# LGSM install_serverdir.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
echo "" |
echo "" |
||||
echo "Server Directory" |
echo "Server Directory" |
@ -1,8 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_steamcmd function |
# LGSM install_steamcmd.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="201215" |
lgsm_version="271215" |
||||
|
|
||||
# Description: Downloads SteamCMD on install. |
# Description: Downloads SteamCMD on install. |
||||
|
|
@ -1,10 +1,10 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LGSM fn_install_ts3 function |
# LGSM install_ts3.sh function |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://gameservermanagers.com |
# Website: http://gameservermanagers.com |
||||
lgsm_version="251215" |
lgsm_version="271215" |
||||
|
|
||||
fn_details_distro |
info_distro.sh |
||||
# Gets the teamspeak server architecture |
# Gets the teamspeak server architecture |
||||
if [ "${arch}" == "x86_64" ]; then |
if [ "${arch}" == "x86_64" ]; then |
||||
ts3arch="amd64" |
ts3arch="amd64" |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue