Browse Source

All servers now have new github branch select feature

pull/551/head
Daniel Gibbs 9 years ago
parent
commit
9cf1775749
  1. 63
      7DaysToDie/sdtdserver
  2. 62
      ARKSurvivalEvolved/arkserver
  3. 62
      Arma3/arma3server
  4. 62
      BlackMesa/bmdmserver
  5. 62
      BladeSymphony/bsserver
  6. 62
      ChivalryMedievalWarfare/cmwserver
  7. 62
      CounterStrike/csserver
  8. 62
      CounterStrikeConditionZero/csczserver
  9. 62
      CounterStrikeGlobalOffensive/csgoserver
  10. 62
      CounterStrikeSource/cssserver
  11. 62
      DayOfDefeat/dodserver
  12. 62
      DayOfDefeatSource/dodsserver
  13. 62
      DeathmatchClassic/dmcserver
  14. 62
      DontStarveTogether/dstserver
  15. 62
      DoubleActionBoogaloo/dabserver
  16. 62
      FistfulOfFrags/fofserver
  17. 62
      GarrysMod/gmodserver
  18. 62
      HalfLife2Deathmatch/hl2dmserver
  19. 63
      HalfLifeDeathmatch/hldmserver
  20. 62
      HalfLifeDeathmatchSource/hldmsserver
  21. 58
      Insurgency/insserver
  22. 62
      JustCause2/jc2server
  23. 62
      KillingFloor/kfserver
  24. 62
      Left4Dead/l4dserver
  25. 62
      Left4Dead2/l4d2server
  26. 63
      Mumble/mumbleserver
  27. 62
      NS2Combat/ns2cserver
  28. 62
      NaturalSelection2/ns2server
  29. 62
      NoMoreRoomInHell/nmrihserver
  30. 62
      OpposingForce/opforserver
  31. 62
      PiratesVikingandKnightsII/pvkiiserver
  32. 62
      ProjectZomboid/pzserver
  33. 62
      RedOrchestra/roserver
  34. 62
      Ricochet/ricochetserver
  35. 62
      SeriousSam3BFE/ss3sserver
  36. 62
      StarBound/sbserver
  37. 11
      TeamFortress2/tf2server
  38. 62
      TeamFortressClassic/tfcserver
  39. 62
      TeamSpeak3/ts3server
  40. 62
      Teeworlds/twserver
  41. 62
      Terraria/terrariaserver
  42. 62
      UnrealTournament2004/ut2k4server
  43. 62
      UnrealTournament99/ut99server
  44. 4
      tests/tests_jc2server.sh
  45. 4
      tests/tests_ts3server.sh

63
7DaysToDie/sdtdserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms="-configfile=${servercfgfullpath} -dedicated"
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="294420" appid="294420"
@ -36,8 +43,8 @@ gamename="7 Days To Die"
engine="unity3d" engine="unity3d"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -66,20 +73,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){
@ -92,3 +124,4 @@ fn_functions
getopt=$1 getopt=$1
fn_getopt fn_getopt

62
ARKSurvivalEvolved/arkserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -26,6 +26,13 @@ parms="TheIsland?listen"
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="376030" appid="376030"
@ -35,8 +42,8 @@ gamename="ARK: Survivial Evolved"
engine="unreal4" engine="unreal4"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/ShooterGame" systemdir="${filesdir}/ShooterGame"
@ -64,20 +71,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Arma3/arma3server

@ -4,7 +4,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributor: Scarsz # Contributor: Scarsz
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -35,6 +35,13 @@ mods=""
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
# Stable # Stable
appid="233780" appid="233780"
@ -47,8 +54,8 @@ gamename="ARMA 3"
engine="realvirtuality" engine="realvirtuality"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -79,20 +86,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
BlackMesa/bmdmserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="346680" appid="346680"
@ -41,8 +48,8 @@ gamename="Black Mesa: Deathmatch"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/bms" systemdir="${filesdir}/bms"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
BladeSymphony/bsserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="228780" appid="228780"
@ -41,8 +48,8 @@ gamename="Blade Symphony"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/berimbau" systemdir="${filesdir}/berimbau"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
ChivalryMedievalWarfare/cmwserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="${defaultmap}\?steamsockets\?adminpassword=${adminpassword}\?port=${port}
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="220070" appid="220070"
@ -41,8 +48,8 @@ gamename="Chivalry: Medieval Warfare"
engine="unreal3" engine="unreal3"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
CounterStrike/csserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clien
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="cstrike" appidmod="cstrike"
@ -41,8 +48,8 @@ gamename="Counter Strike 1.6"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike" systemdir="${filesdir}/cstrike"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
CounterStrikeConditionZero/csczserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="czero" appidmod="czero"
@ -41,8 +48,8 @@ gamename="Counter Strike: Condition Zero"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/czero" systemdir="${filesdir}/czero"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
CounterStrikeGlobalOffensive/csgoserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -55,6 +55,13 @@ parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport $
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="740" appid="740"
@ -64,8 +71,8 @@ gamename="Counter Strike: Global Offensive"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/csgo" systemdir="${filesdir}/csgo"
@ -93,20 +100,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
CounterStrikeSource/cssserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clien
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="232330" appid="232330"
@ -41,8 +48,8 @@ gamename="Counter Strike: Source"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike" systemdir="${filesdir}/cstrike"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
DayOfDefeat/dodserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="dod" appidmod="dod"
@ -41,8 +48,8 @@ gamename="Day of Defeat"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod" systemdir="${filesdir}/dod"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
DayOfDefeatSource/dodsserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="232290" appid="232290"
@ -41,8 +48,8 @@ gamename="Day of Defeat: Source"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod" systemdir="${filesdir}/dod"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
DeathmatchClassic/dmcserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="dmc" appidmod="dmc"
@ -41,8 +48,8 @@ gamename="Deathmatch Classic"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dmc" systemdir="${filesdir}/dmc"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
DontStarveTogether/dstserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="070715" version="121215"
#### Variables #### #### Variables ####
@ -26,6 +26,13 @@ parms=""
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="343050" appid="343050"
@ -35,8 +42,8 @@ gamename="Dont Starve Together"
engine="dontstarve" engine="dontstarve"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -64,20 +71,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
DoubleActionBoogaloo/dabserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_por
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="317800" appid="317800"
@ -41,8 +48,8 @@ gamename="Double Action: Boogaloo"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dab" systemdir="${filesdir}/dab"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
FistfulOfFrags/fofserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="295230" appid="295230"
@ -41,8 +48,8 @@ gamename="Fistful of Frags"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/fof" systemdir="${filesdir}/fof"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
GarrysMod/gmodserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -38,6 +38,13 @@ parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_co
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="4020" appid="4020"
@ -47,8 +54,8 @@ gamename="Garry's Mod"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/garrysmod" systemdir="${filesdir}/garrysmod"
@ -76,20 +83,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
HalfLife2Deathmatch/hl2dmserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="232370" appid="232370"
@ -41,8 +48,8 @@ gamename="Half Life 2: Deathmatch"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl2mp" systemdir="${filesdir}/hl2mp"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

63
HalfLifeDeathmatch/hldmserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
@ -40,8 +47,8 @@ gamename="Half Life: Deathmatch"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/valve" systemdir="${filesdir}/valve"
@ -69,21 +76,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
sleep 1 echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
HalfLifeDeathmatchSource/hldmsserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="255470" appid="255470"
@ -41,8 +48,8 @@ gamename="Half-Life Deathmatch: Source"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl1mp" systemdir="${filesdir}/hl1mp"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

58
Insurgency/insserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${cl
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="237410" appid="237410"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
JustCause2/jc2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="150715" version="121215"
#### Variables #### #### Variables ####
@ -25,6 +25,13 @@ parms=""
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="261140" appid="261140"
@ -34,8 +41,8 @@ gamename="Just Cause 2"
engine="avalanche" engine="avalanche"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -63,20 +70,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
KillingFloor/kfserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="215360" appid="215360"
@ -40,8 +47,8 @@ gamename="Killing Floor"
engine="unreal2" engine="unreal2"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System" systemdir="${filesdir}/System"
@ -72,20 +79,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Left4Dead/l4dserver

@ -4,7 +4,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributor: Summit Singh Thakur # Contributor: Summit Singh Thakur
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${cli
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="222840" appid="222840"
@ -41,8 +48,8 @@ gamename="Left 4 Dead"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead" systemdir="${filesdir}/left4dead"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Left4Dead2/l4d2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game left4dead2 -strictportbind -ip ${ip} -port ${port} +clientport ${cl
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="222860" appid="222860"
@ -40,8 +47,8 @@ gamename="Left 4 Dead 2"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead2" systemdir="${filesdir}/left4dead2"
@ -69,20 +76,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

63
Mumble/mumbleserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -17,8 +17,8 @@ gamename="Mumble"
servicename="mumble-server" servicename="mumble-server"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -46,23 +46,55 @@ fn_parms(){
parms="-fg -ini ${servercfgfullpath}" parms="-fg -ini ${servercfgfullpath}"
} }
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){
@ -75,3 +107,4 @@ fn_functions
getopt=$1 getopt=$1
fn_getopt fn_getopt

62
NS2Combat/ns2cserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -41,6 +41,13 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="313900" appid="313900"
@ -50,8 +57,8 @@ gamename="NS2: Combat"
engine="spark" engine="spark"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -75,20 +82,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
NaturalSelection2/ns2server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -41,6 +41,13 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="4940" appid="4940"
@ -50,8 +57,8 @@ gamename="Natural Selection 2"
engine="spark" engine="spark"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -75,20 +82,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
NoMoreRoomInHell/nmrihserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="291015" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game nmrih -insecure -strictportbind -ip ${ip} -port ${port} +clientport
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="317670" appid="317670"
@ -41,8 +48,8 @@ gamename="No More Room in Hell"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/nmrih" systemdir="${filesdir}/nmrih"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
OpposingForce/opforserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game gearbox -strictportbind +ip ${ip} -port ${port} +clientport ${clien
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="gearbox" appidmod="gearbox"
@ -41,8 +48,8 @@ gamename="Half-Life: Opposing Force"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/gearbox" systemdir="${filesdir}/gearbox"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
PiratesVikingandKnightsII/pvkiiserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="051115" version="121215"
#### Variables #### #### Variables ####
@ -32,6 +32,13 @@ parms="-game pvkii -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="17575" appid="17575"
@ -41,8 +48,8 @@ gamename="Pirates, Vikings, and Knights II"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/pvkii" systemdir="${filesdir}/pvkii"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
ProjectZomboid/pzserver

@ -4,7 +4,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributions: Bryce Van Dyk (SingingTree) # Contributions: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="031015" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms=""
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="380870" appid="380870"
@ -36,8 +43,8 @@ gamename="Project Zomboid"
engine="projectzomboid" engine="projectzomboid"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -64,20 +71,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
RedOrchestra/roserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir in
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Server Details # Server Details
servicename="ro-server" servicename="ro-server"
gamename="Red Orchestra: Ostfront 41-45" gamename="Red Orchestra: Ostfront 41-45"
@ -36,8 +43,8 @@ engine="unreal2"
appid="223250" appid="223250"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/system" systemdir="${filesdir}/system"
@ -68,20 +75,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Ricochet/ricochetserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game ricochet -strictportbind +ip ${ip} -port ${port} +clientport ${clie
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmod="ricochet" appidmod="ricochet"
@ -41,8 +48,8 @@ gamename="Ricochet"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/ricochet" systemdir="${filesdir}/ricochet"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
SeriousSam3BFE/ss3sserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms="+ip ${ip} +logfile ${gamelog} +exec ${servercfgfullpath}"
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="41080" appid="41080"
@ -36,8 +43,8 @@ gamename="Serious Sam 3: BFE"
engine="seriousengine35" engine="seriousengine35"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/Bin" systemdir="${filesdir}/Bin"
@ -67,20 +74,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
StarBound/sbserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -26,6 +26,13 @@ parms=""
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="211820" appid="211820"
@ -35,8 +42,8 @@ gamename="Starbound"
engine="starbound" engine="starbound"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -63,20 +70,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

11
TeamFortress2/tf2server

@ -53,8 +53,8 @@ gamename="Team Fortress 2"
engine="source" engine="source"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/tf" systemdir="${filesdir}/tf"
@ -95,10 +95,9 @@ if [ ! -f "${filepath}" ]; then
fi fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}" githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c" echo -e " fetching ${filename}...\c"
#wget -N /dev/null "${githuburl}" -O "${filepath}" 2>&1 | grep -F HTTP | cut -c45-
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
echo -e "\e[0;31mFAIL\e[0m\n" echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed" echo "Curl is not installed!"
echo -e "" echo -e ""
exit exit
fi fi
@ -111,11 +110,11 @@ if [ ! -f "${filepath}" ]; then
else else
echo -e "\e[0;32mOK\e[0m" echo -e "\e[0;32mOK\e[0m"
fi fi
if [ "$exec" ]; then if [ "${exec}" ]; then
chmod +x "${filepath}" chmod +x "${filepath}"
fi fi
fi fi
if [ "$exec" ]; then if [ "${exec}" ]; then
source "${filepath}" source "${filepath}"
fi fi
} }

62
TeamFortressClassic/tfcserver

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="091215" version="121215"
#### Variables #### #### Variables ####
@ -31,6 +31,13 @@ parms="-game tfc -strictportbind _ip ${ip} -port ${port} +clientport ${clientpor
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="90" appid="90"
appidmos="tfc" appidmos="tfc"
@ -41,8 +48,8 @@ gamename="Team Fortress Classic"
engine="goldsource" engine="goldsource"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/tfc" systemdir="${filesdir}/tfc"
@ -70,20 +77,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
TeamSpeak3/ts3server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -21,8 +21,8 @@ servername="Teamspeak 3 Server"
servicename="ts3-server" servicename="ts3-server"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -43,23 +43,55 @@ emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Teeworlds/twserver

@ -4,7 +4,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributor: Bryce Van Dyk (SingingTree) # Contributor: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="281015" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms="-f ${servercfgfullpath}"
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="380840" appid="380840"
@ -36,8 +43,8 @@ gamename="Teeworlds"
engine="teeworlds" engine="teeworlds"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -66,20 +73,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
Terraria/terrariaserver

@ -4,7 +4,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributor: Bryce Van Dyk (SingingTree) # Contributor: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="070915" version="121215"
#### Variables #### #### Variables ####
@ -27,6 +27,13 @@ parms="-config ${servercfgfullpath}"
#### Advanced Variables #### #### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam # Steam
appid="105600" appid="105600"
@ -36,8 +43,8 @@ gamename="Terraria"
engine="terraria" engine="terraria"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"
@ -65,20 +72,45 @@ consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
UnrealTournament2004/ut2k4server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -26,8 +26,8 @@ gamename="Unreal Tournament 2004"
engine="unreal2" engine="unreal2"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System" systemdir="${filesdir}/System"
@ -55,23 +55,55 @@ gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

62
UnrealTournament99/ut99server

@ -3,7 +3,7 @@
# Server Management Script # Server Management Script
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
version="040715" version="121215"
#### Variables #### #### Variables ####
@ -28,8 +28,8 @@ gamename="Unreal Tournament 99"
engine="unreal" engine="unreal"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System" systemdir="${filesdir}/System"
@ -54,23 +54,55 @@ emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script ##### ##### Script #####
# Do not edit # Do not edit
fn_runfunction(){ fn_getgithubfile(){
# Functions are downloaded and run with this function filename=$1
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then exec=$2
cd "${rootdir}" fileurl=${3:-$filename}
if [ ! -d "functions" ]; then filepath="${rootdir}/${filename}"
mkdir functions filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi fi
cd functions githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " loading ${functionfile}...\c" echo -e " fetching ${filename}...\c"
wget -N /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
chmod +x "${functionfile}" echo -e "\e[0;31mFAIL\e[0m\n"
cd "${rootdir}" echo "Curl is not installed!"
echo -e ""
exit
fi
CURL=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " $CURL"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi fi
source "${rootdir}/functions/${functionfile}" }
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
} }
fn_functions(){ fn_functions(){

4
tests/tests_jc2server.sh

@ -34,8 +34,8 @@ gamename="Just Cause 2"
engine="avalanche" engine="avalanche"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"

4
tests/tests_ts3server.sh

@ -21,8 +21,8 @@ servername="Teamspeak 3 Server"
servicename="ts3-server" servicename="ts3-server"
# Directories # Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname="$(basename $0)" selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock" lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles" filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}" systemdir="${filesdir}"

Loading…
Cancel
Save