Просмотр исходного кода

Merge pull request #375 from dgibbs64/master

Master to development
Daniel Gibbs 11 лет назад
Родитель
Сommit
6c90474ed8

+ 3 - 2
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -17,7 +17,8 @@ steamuser="username"
 steampass="password"
 steampass="password"
 
 
 # Start Variables
 # Start Variables
-ip="0.0.0.0"  # can leave to answer on any IP
+ip="0.0.0.0"
+updateonstart="no"
 
 
 # Mod Variables
 # Mod Variables
 
 

+ 3 - 2
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -17,8 +17,9 @@ email="email@example.com"
 steamuser="username"
 steamuser="username"
 steampass="password"
 steampass="password"
 
 
-# Server IP
+# Start Variables
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}"
 parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 3 - 9
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -34,6 +34,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 # Optional: Workshop Parameters
 # Optional: Workshop Parameters
 # https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
 # https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
 # To get an authkey visit - http://steamcommunity.com/dev/apikey
 # To get an authkey visit - http://steamcommunity.com/dev/apikey
@@ -111,12 +112,5 @@ fn_runfunction
 
 
 fn_functions
 fn_functions
 
 
-# init the getopt function variables
 getopt=$1
 getopt=$1
-
-# init the select function variables
-usesrvcfg=1
-getsrvcfg=$2
-
-fn_select
-fn_getopt
+fn_getopt

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -29,6 +29,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 050515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -20,6 +20,7 @@ steampass=""
 maxplayers="10"
 maxplayers="10"
 port="7777"
 port="7777"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms="--maxplayers ${maxplayers} --bindip ${ip} --bindport ${port}"
 parms="--maxplayers ${maxplayers} --bindip ${ip} --bindport ${port}"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -19,6 +19,7 @@ steampass="password"
 # Start Variables
 # Start Variables
 defaultmap="KF-BioticsLab.rom"
 defaultmap="KF-BioticsLab.rom"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
 parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ maxplayers="8"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="8"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -21,6 +21,7 @@ defaultmap="co_core"
 port="27015"
 port="27015"
 maxplayers="24"
 maxplayers="24"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 servername="NS2C Server"
 servername="NS2C Server"
 webadminuser="admin"
 webadminuser="admin"
 webadminpass="admin"
 webadminpass="admin"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -21,6 +21,7 @@ defaultmap="ns2_summit"
 port="27015"
 port="27015"
 maxplayers="24"
 maxplayers="24"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 servername="NS2 Server"
 servername="NS2 Server"
 webadminuser="admin"
 webadminuser="admin"
 webadminpass="admin"
 webadminpass="admin"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
ProjectZomboid/pzserver

@@ -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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -18,6 +18,7 @@ steampass=""
 
 
 # Start Variables
 # Start Variables
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms=""
 parms=""

+ 1 - 1
README.md

@@ -1,7 +1,7 @@
 <h1>Linux Game Server Managers_</h1>
 <h1>Linux Game Server Managers_</h1>
 <a href="http://gameservermanagers.com"><img src="https://github.com/dgibbs64/linuxgsm/blob/master/images/logo/lgsm-full-light.png" alt="linux Game Server Managers" width="600" /></a>
 <a href="http://gameservermanagers.com"><img src="https://github.com/dgibbs64/linuxgsm/blob/master/images/logo/lgsm-full-light.png" alt="linux Game Server Managers" width="600" /></a>
 
 
-[![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=development)](https://travis-ci.org/dgibbs64/linuxgsm)
+[![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=master)](https://travis-ci.org/dgibbs64/linuxgsm)
 
 
 The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice comms servers.
 The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice comms servers.
 
 

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -19,6 +19,7 @@ steampass="password"
 # Start Variables
 # Start Variables
 defaultmap="RO-Arad.rom"
 defaultmap="RO-Arad.rom"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
 parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -18,6 +18,7 @@ steampass="password"
 
 
 # Start Variables
 # Start Variables
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt
 # https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -18,6 +18,7 @@ steampass="password"
 
 
 # Start Variables
 # Start Variables
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 fn_parms(){
 fn_parms(){
 parms=""
 parms=""

+ 2 - 1
TeamFortress2/tf2server

@@ -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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -23,6 +23,7 @@ port="27015"
 sourcetvport="27020"
 sourcetvport="27020"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
 fn_parms(){
 fn_parms(){

+ 2 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -22,6 +22,7 @@ maxplayers="16"
 port="27015"
 port="27015"
 clientport="27005"
 clientport="27005"
 ip="0.0.0.0"
 ip="0.0.0.0"
+updateonstart="no"
 
 
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 # https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
 fn_parms(){
 fn_parms(){

+ 4 - 1
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: 030515
+# Version: 090515
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -12,6 +12,9 @@
 emailnotification="off"
 emailnotification="off"
 email="email@example.com"
 email="email@example.com"
 
 
+# Start Variables
+updateonstart="no"
+
 # Server Details
 # Server Details
 gamename="Teamspeak 3"
 gamename="Teamspeak 3"
 servername="Teamspeak 3 Server"
 servername="Teamspeak 3 Server"

+ 1 - 1
functions/fn_details_distro

@@ -29,7 +29,7 @@ glibcv=$(ldd --version |grep ldd|awk '{print $NF}')
 # e.g: tmux 1.6
 # e.g: tmux 1.6
 if [ -z "$(command -v tmux)" ]; then
 if [ -z "$(command -v tmux)" ]; then
 	tmuxv="\e[0;31mNOT INSTALLED!\e[0m"
 	tmuxv="\e[0;31mNOT INSTALLED!\e[0m"
-elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd '[:digit:]')" -lt "16" ]; then
+elif [ "$(tmux -V|sed "s/tmux //"|sed -n '1 p'|tr -cd [:digit:])" -lt "16" ]; then
 	tmuxv="$(tmux -V) (>= 1.6 required for console log)"
 	tmuxv="$(tmux -V) (>= 1.6 required for console log)"
 else
 else
 	tmuxv=$(tmux -V)
 	tmuxv=$(tmux -V)

+ 0 - 5
functions/fn_functions

@@ -273,10 +273,5 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_select(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
 # Calls on-screen messages
 # Calls on-screen messages
 fn_messages
 fn_messages

+ 1 - 1
functions/fn_getopt

@@ -41,7 +41,7 @@ case "$getopt" in
 	auto-install)
 	auto-install)
 		fn_autoinstall;;
 		fn_autoinstall;;
 	*)
 	*)
-	echo "Usage: $0 {start|stop|restart|update|force-update|validate|monitor|email-test|details|backup|console|debug|install|auto-install} $appendextra"
+	echo "Usage: $0 {start|stop|restart|update|force-update|validate|monitor|email-test|details|backup|console|debug|install|auto-install}"
 	exit 1;;
 	exit 1;;
 esac
 esac
 exit
 exit

+ 0 - 84
functions/fn_select

@@ -1,84 +0,0 @@
-#!/bin/bash
-# LGSM fn_select function
-# Author: Ilija Matoski (ilijamt@gmail.com)
-# Website: https://matoski.com
-# Version: 010316
-
-# Description: Automatically selects a created server from the available ones defined in the root
-# If no server files found <name>.<appid> it will default to the data in the game file
-
-if [ $usesrvcfg -eq 1 ]; then
-
-    if [ -z "$appid" ]; then
-      fn_printwarn "appid not found for $gamename, this is not supported.\n\n"
-      exit
-    fi
-
-    # get all the available configs for the appid
-    cfgs=()
-    filelist=(`find $rootdir -type f -name "*.$appid"`)
-    for file in "${filelist[@]}"; do
-      cfg=${file:${#rootdir}+1}
-      cfg=${cfg:0:${#cfg} - 4}
-      cfgs+=("$cfg")
-    done
-
-    # create the append extra list for the options
-    appendextra=$(printf "|%s" "${cfgs[@]}")
-    appendextra=${appendextra:1}
-    loadcfg=
-    invalidcfg=0
-    reinit=0
-
-    # if we don't have any config files proced as normal so skip the next part
-    if [ ${#cfgs[@]} -eq 1 ]; then
-        # we have only one config file so we load that one only unless the user specifies it manually, then we verify
-        loadcfg="${cfgs[0]}";
-        if [ ! -z "$getsrvcfg" ] && [ ! -f "${getsrvcfg}.${appid}" ]; then
-            invalidcfg=1
-        fi
-    elif [ ${#cfgs[@]} -gt 0 ]; then
-        # we have more than one files available so we continue on the verification if the file is present
-        loadcfg="$getsrvcfg";
-        if [ -z "$getsrvcfg" ] || [ ! -f "${getsrvcfg}.${appid}" ]; then
-            invalidcfg=1
-        fi
-    else
-        # we don't have anything so we need to continue on without touching anything
-        reinit=0
-        loadcfg=
-    fi
-
-    # it's invalid cfg setting
-    if [ $invalidcfg -eq 1 ]; then
-      if [ -z "$getsrvcfg" ]; then
-        fn_printwarn "configuration file not specified, use one of the available ones ($appendextra)\n"
-      else
-        fn_printwarn "$getsrvcfg configuration file does not exist, use one of the available ones ($appendextra)\n"
-      fi
-      getopt=
-      fn_getopt
-    else
-      if [ ! -z "$loadcfg" ] && [ -f "${getsrvcfg}.${appid}" ]; then
-        # everything OK, load the config file and reinit the variables
-        source "${loadcfg}.${appid}"
-        reinit=1
-      fi
-    fi
-
-    if [ $reinit -eq 1 ]; then
-        case "$appid" in
-            *)
-            lockselfname=".${servicename}.lock"
-            servercfg="${servicename}.cfg"
-            servercfgfullpath="${servercfgdir}/${servercfg}"
-            scriptlog="${scriptlogdir}/${servicename}-script.log"
-            consolelog="${consolelogdir}/${servicename}-console.log"
-            emaillog="${scriptlogdir}/${servicename}-email.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"
-            ;;
-        esac
-    fi
-
-fi

+ 14 - 2
functions/fn_start

@@ -2,7 +2,7 @@
 # LGSM fn_start function
 # LGSM fn_start function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-# Version: 070515
+# Version: 090515
 
 
 # Description: Starts the server.
 # Description: Starts the server.
 
 
@@ -43,6 +43,12 @@ if [ ! -e "${servercfgfullpath}" ]; then
 	touch "${servercfgfullpath}"
 	touch "${servercfgfullpath}"
 fi
 fi
 fn_logs
 fn_logs
+
+# Will check for updates is updateonstart is yes
+if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then
+	fn_update_check
+fi
+
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
@@ -102,6 +108,12 @@ if [ "${tmuxwc}" -eq 1 ]; then
 	echo -en "\n"
 	echo -en "\n"
 	exit
 	exit
 fi
 fi
+
+# Will check for updates is updateonstart is yes
+if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then
+	fn_update_check
+fi
+
 # Create lock file
 # Create lock file
 date > "${rootdir}/${lockselfname}"
 date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
@@ -171,7 +183,7 @@ else
 	fn_printok "${servername}"
 	fn_printok "${servername}"
 	fn_scriptlog "Started ${servername}"
 	fn_scriptlog "Started ${servername}"
 fi
 fi
-#rm "${scriptlogdir}/.${servicename}-tmux-error.tmp"
+rm "${scriptlogdir}/.${servicename}-tmux-error.tmp"
 echo -en "\n"
 echo -en "\n"
 }
 }
 
 

+ 0 - 33
functions/fn_update_sdtd_allocfixes

@@ -1,33 +0,0 @@
-#!/bin/bash
-# LGSM fn_sdtd_allocfixes function
-# Author: Daniel Gibbs
-# Website: http://danielgibbs.co.uk
-# Version: 204014
-
-# Description: Stops the server.
-
-if [ "${allocsfixes}" = true ]; then
-        sleep 5
-        fn_scriptlog "Installing Alloc's Server Fixes"
-        echo -en "\n"
-        sleep 5
-        echo -en "Installing Alloc's Server Fixes\n"
-        cd "${rootdir}"/serverfiles/
-        rm -rf server_fixes.tar.gz
-        wget http://illy.bz/fi/7dtd/server_fixes.tar.gz
-        if [ -f "server_fixes.tar.gz" ]; then
-                tar -xzf server_fixes.tar.gz
-                rm -rf server_fixes.tar.gz
-                fn_scriptlog "Server Fixes Installed"
-                echo -en "Alloc's Server Fixes have been installed.\n"
-        else
-            	if [ ! -f "server_fixes.tar.gz" ]; then
-                        fn_scriptlog "Error downloading Server Fixes!"
-                fi
-                echo -en "There was a problem installing Alloc's Server Fixes!"
-        fi
-
-	fn_scriptlog "Alloc's Server Fixes installed."
-        echo -en "FAlloc's Server Fixes installed.\n"
-fi
-}