Browse Source

function_selfname is now local

pull/914/head
Daniel Gibbs 9 years ago
parent
commit
b013b20aa8
  1. 2
      functions/command_update_functions.sh
  2. 2
      lgsm/functions/alert_pushbullet.sh
  3. 2
      lgsm/functions/command_backup.sh
  4. 3
      lgsm/functions/command_console.sh
  5. 2
      lgsm/functions/command_debug.sh
  6. 2
      lgsm/functions/command_details.sh
  7. 2
      lgsm/functions/command_dev_debug.sh
  8. 2
      lgsm/functions/command_dev_detect_deps.sh
  9. 2
      lgsm/functions/command_fastdl.sh
  10. 2
      lgsm/functions/command_install.sh
  11. 2
      lgsm/functions/command_monitor.sh
  12. 2
      lgsm/functions/command_restart.sh
  13. 2
      lgsm/functions/command_start.sh
  14. 2
      lgsm/functions/command_stop.sh
  15. 2
      lgsm/functions/command_test_alert.sh
  16. 2
      lgsm/functions/command_ts3_server_pass.sh
  17. 2
      lgsm/functions/command_update.sh
  18. 2
      lgsm/functions/command_update_functions.sh
  19. 2
      lgsm/functions/command_validate.sh
  20. 2
      lgsm/functions/compress_unreal2_maps.sh
  21. 2
      lgsm/functions/compress_ut99_maps.sh
  22. 2
      lgsm/functions/core_dl.sh
  23. 2
      lgsm/functions/core_getopt.sh
  24. 2
      lgsm/functions/update_check.sh
  25. 2
      lgsm/functions/update_dl.sh
  26. 2
      lgsm/functions/update_ts3.sh

2
functions/command_update_functions.sh

@ -6,7 +6,7 @@ lgsm_version="210516"
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub. # Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
fn_print_dots "Updating functions" fn_print_dots "Updating functions"
fn_script_log "Updating functions" fn_script_log "Updating functions"

2
lgsm/functions/alert_pushbullet.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: alerts using pushbullet. # Description: alerts using pushbullet.
local modulename="Alert" local modulename="Alert"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_print_dots "Sending Pushbullet alert" fn_print_dots "Sending Pushbullet alert"
sleep 1 sleep 1

2
lgsm/functions/command_backup.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Creates a .tar.gz file in the backup directory. # Description: Creates a .tar.gz file in the backup directory.
local modulename="Backup" local modulename="Backup"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
info_distro.sh info_distro.sh

3
lgsm/functions/command_console.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Gives access to the server tmux console. # Description: Gives access to the server tmux console.
local modulename="Console" local modulename="Console"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
echo "" echo ""
@ -45,7 +45,6 @@ else
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fi fi
core_exit.sh core_exit.sh

2
lgsm/functions/command_debug.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Runs the server without tmux. Runs direct from the terminal. # Description: Runs the server without tmux. Runs direct from the terminal.
local modulename="Debug" local modulename="Debug"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
# Trap to remove lockfile on quit. # Trap to remove lockfile on quit.
fn_lockfile_trap(){ fn_lockfile_trap(){

2
lgsm/functions/command_details.sh

@ -6,7 +6,7 @@ lgsm_version="190616"
# Description: Displays server infomation. # Description: Displays server infomation.
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
# Standard Details # Standard Details
# This applies to all engines # This applies to all engines

2
lgsm/functions/command_dev_debug.sh

@ -6,7 +6,7 @@ lgsm_version="210516"
# Description: Dev only: enables debuging log to be saved to dev-debug.log. # Description: Dev only: enables debuging log to be saved to dev-debug.log.
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
if [ -f ".dev-debug" ]; then if [ -f ".dev-debug" ]; then
rm .dev-debug rm .dev-debug

2
lgsm/functions/command_dev_detect_deps.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Detects dependencies the server binary requires. # Description: Detects dependencies the server binary requires.
local modulename="Backup" local modulename="Backup"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
cd "${executabledir}" cd "${executabledir}"

2
lgsm/functions/command_fastdl.sh

@ -8,7 +8,7 @@ lgsm_version="060616"
# Description: Creates a FastDL folder # Description: Creates a FastDL folder
local modulename="FastDL" local modulename="FastDL"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh

2
lgsm/functions/command_install.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Overall function for the installer. # Description: Overall function for the installer.
local modulename="Install" local modulename="Install"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
install_header.sh install_header.sh

2
lgsm/functions/command_monitor.sh

@ -8,7 +8,7 @@ lgsm_version="210516"
# then passes to monitor_gsquery.sh. # then passes to monitor_gsquery.sh.
local modulename="Monitor" local modulename="Monitor"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_monitor_check_lockfile(){ fn_monitor_check_lockfile(){
# Monitor does not run it lockfile is not found # Monitor does not run it lockfile is not found

2
lgsm/functions/command_restart.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Starts the server. # Description: Starts the server.
local modulename="Restarting" local modulename="Restarting"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
exitbypass=1 exitbypass=1
info_config.sh info_config.sh

2
lgsm/functions/command_start.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Starts the server. # Description: Starts the server.
local modulename="Starting" local modulename="Starting"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_start_teamspeak3(){ fn_start_teamspeak3(){
if [ ! -e "${servercfgfullpath}" ]; then if [ ! -e "${servercfgfullpath}" ]; then

2
lgsm/functions/command_stop.sh

@ -7,7 +7,7 @@ lgsm_version="050616"
# Description: Stops the server. # Description: Stops the server.
local modulename="Stopping" local modulename="Stopping"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
# Attempts Graceful of source using rcon 'quit' command. # Attempts Graceful of source using rcon 'quit' command.
fn_stop_graceful_source(){ fn_stop_graceful_source(){

2
lgsm/functions/command_test_alert.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Sends a test email alert. # Description: Sends a test email alert.
local modulename="Alert" local modulename="Alert"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
info_config.sh info_config.sh

2
lgsm/functions/command_ts3_server_pass.sh

@ -8,7 +8,7 @@ lgsm_version="210516"
# Description: Changes TS3 serveradmin password # Description: Changes TS3 serveradmin password
local modulename="Change password" local modulename="Change password"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_serveradmin_password_prompt(){ fn_serveradmin_password_prompt(){

2
lgsm/functions/command_update.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description:Hangles updating of servers. # Description:Hangles updating of servers.
local modulename="Update" local modulename="Update"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh

2
lgsm/functions/command_update_functions.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub. # Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
local modulename="Updating LGSM" local modulename="Updating LGSM"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
fn_print_dots "Updating functions" fn_print_dots "Updating functions"
fn_script_log_info "Updating functions" fn_script_log_info "Updating functions"

2
lgsm/functions/command_validate.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Runs a server validation. # Description: Runs a server validation.
local modulename="Validate" local modulename="Validate"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_validation(){ fn_validation(){
fn_print_warn_nl "Validating may overwrite some customised files." fn_print_warn_nl "Validating may overwrite some customised files."

2
lgsm/functions/compress_unreal2_maps.sh

@ -4,7 +4,7 @@
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
lgsm_version="210516" lgsm_version="210516"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
clear clear

2
lgsm/functions/compress_ut99_maps.sh

@ -4,7 +4,7 @@
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
lgsm_version="210516" lgsm_version="210516"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
clear clear

2
lgsm/functions/core_dl.sh

@ -19,7 +19,7 @@ lgsm_version="210516"
# fn_fetch_file "http://example.com/file.tar.bz2" "/some/dir" "file.tar.bz2" "executecmd" "run" "force" "10cd7353aa9d758a075c600a6dd193fd" # fn_fetch_file "http://example.com/file.tar.bz2" "/some/dir" "file.tar.bz2" "executecmd" "run" "force" "10cd7353aa9d758a075c600a6dd193fd"
local modulename="Download" local modulename="Download"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_dl_md5(){ fn_dl_md5(){
# Runs MD5 Check if available # Runs MD5 Check if available

2
lgsm/functions/core_getopt.sh

@ -6,7 +6,7 @@ lgsm_version="210516"
# Description: getopt arguments. # Description: getopt arguments.
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_getopt_generic(){ fn_getopt_generic(){
case "${getopt}" in case "${getopt}" in

2
lgsm/functions/update_check.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Checks if a server update is available. # Description: Checks if a server update is available.
local modulename="Update" local modulename="Update"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
### SteamCMD Update Checker ### ### SteamCMD Update Checker ###

2
lgsm/functions/update_dl.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description: Runs a server update. # Description: Runs a server update.
local modulename="Update" local modulename="Update"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_steamcmd_dl(){ fn_steamcmd_dl(){
cd "${rootdir}" cd "${rootdir}"

2
lgsm/functions/update_ts3.sh

@ -7,7 +7,7 @@ lgsm_version="210516"
# Description:Handles updating of teamspeak 3 servers. # Description:Handles updating of teamspeak 3 servers.
local modulename="Update" local modulename="Update"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_update_ts3_dl(){ fn_update_ts3_dl(){
fn_fetch_file "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" "${lgsmdir}/tmp" "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" fn_fetch_file "http://dl.4players.de/ts/releases/${ts3_version_number}/teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2" "${lgsmdir}/tmp" "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2"

Loading…
Cancel
Save