Browse Source

adding ts3 functions

pull/614/head
UltimateByte 9 years ago
parent
commit
9386317a77
  1. 4
      functions/command_ts3_server_password.sh
  2. 6
      functions/core_functions.sh
  3. 5
      functions/core_getopt.sh

4
functions/command_ts3_server_password.sh

@ -3,7 +3,7 @@
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributor : UltimateByte # Contributor : UltimateByte
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
lgsm_version="030116" lgsm_version="050116"
# Description: Changes TS3 serveradmin password # Description: Changes TS3 serveradmin password
@ -68,4 +68,4 @@ else
fn_serveradmin_password_set fn_serveradmin_password_set
echo -en "\n" echo -en "\n"
command_stop.sh command_stop.sh
fi fi

6
functions/core_functions.sh

@ -2,7 +2,6 @@
# LGSM core_functions.sh function # LGSM core_functions.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
lgsm_version="030116"
# Description: Defines all functions to allow download and execution of functions using fn_runfunction. # Description: Defines all functions to allow download and execution of functions using fn_runfunction.
# This function is called first before any other function. Without this file other functions would not load. # This function is called first before any other function. Without this file other functions would not load.
@ -85,6 +84,11 @@ functionfile="${FUNCNAME}"
fn_runfunction fn_runfunction
} }
command_ts3_server_password.sh(){
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_restart(){ fn_restart(){
local modulename="Restarting" local modulename="Restarting"
info_config.sh info_config.sh

5
functions/core_getopt.sh

@ -2,7 +2,7 @@
# LGSM core_getopt.sh function # LGSM core_getopt.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
lgsm_version="271215" lgsm_version="050116"
# Description: getopt arguments. # Description: getopt arguments.
@ -90,6 +90,8 @@ case "$getopt" in
command_details.sh;; command_details.sh;;
b|backup) b|backup)
command_backup.sh;; command_backup.sh;;
pw|serveradmin-password)
command_ts3_server_password.sh;;
dev|dev-debug) dev|dev-debug)
command_dev_debug.sh;; command_dev_debug.sh;;
i|install) i|install)
@ -113,6 +115,7 @@ case "$getopt" in
echo -e "\e[34mmonitor\t\e[0mChecks that the server is running." echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
echo -e "\e[34memail-test\t\e[0mSends test monitor email." echo -e "\e[34memail-test\t\e[0mSends test monitor email."
echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
echo -e "\e[34mserveradmin-password\t\e[0mChanges TS3 server password."
echo -e "\e[34mbackup\t\e[0mCreate archive of the server." echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
echo -e "\e[34minstall\t\e[0mInstall the server." echo -e "\e[34minstall\t\e[0mInstall the server."
echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts." echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."

Loading…
Cancel
Save