Browse Source

Revert " SC2168: 'local' is only valid in functions."

This reverts commit 062ca4236c.
pull/1946/merge
Daniel Gibbs 7 years ago
parent
commit
6848c9dbf7
  1. 2
      lgsm/functions/alert_email.sh
  2. 2
      lgsm/functions/alert_ifttt.sh
  3. 2
      lgsm/functions/alert_mailgun.sh
  4. 2
      lgsm/functions/alert_pushbullet.sh
  5. 2
      lgsm/functions/alert_pushover.sh
  6. 2
      lgsm/functions/alert_telegram.sh
  7. 2
      lgsm/functions/check_config.sh
  8. 2
      lgsm/functions/check_executable.sh
  9. 2
      lgsm/functions/check_ip.sh
  10. 2
      lgsm/functions/check_logs.sh
  11. 2
      lgsm/functions/check_root.sh
  12. 2
      lgsm/functions/check_status.sh
  13. 2
      lgsm/functions/check_system_dir.sh
  14. 2
      lgsm/functions/check_system_requirements.sh
  15. 2
      lgsm/functions/command_backup.sh
  16. 2
      lgsm/functions/command_console.sh
  17. 2
      lgsm/functions/command_debug.sh
  18. 2
      lgsm/functions/command_details.sh
  19. 2
      lgsm/functions/command_dev_debug.sh
  20. 2
      lgsm/functions/command_dev_detect_deps.sh
  21. 2
      lgsm/functions/command_dev_detect_glibc.sh
  22. 2
      lgsm/functions/command_dev_detect_ldd.sh
  23. 2
      lgsm/functions/command_dev_query_raw.sh
  24. 2
      lgsm/functions/command_fastdl.sh
  25. 2
      lgsm/functions/command_install.sh
  26. 2
      lgsm/functions/command_install_resources_mta.sh
  27. 2
      lgsm/functions/command_mods_install.sh
  28. 2
      lgsm/functions/command_mods_remove.sh
  29. 2
      lgsm/functions/command_mods_update.sh
  30. 2
      lgsm/functions/command_monitor.sh
  31. 2
      lgsm/functions/command_postdetails.sh
  32. 2
      lgsm/functions/command_restart.sh
  33. 4
      lgsm/functions/command_start.sh
  34. 2
      lgsm/functions/command_stop.sh
  35. 2
      lgsm/functions/command_test_alert.sh
  36. 2
      lgsm/functions/command_ts3_server_pass.sh
  37. 2
      lgsm/functions/command_update.sh
  38. 2
      lgsm/functions/command_update_linuxgsm.sh
  39. 2
      lgsm/functions/command_validate.sh
  40. 2
      lgsm/functions/command_wipe.sh
  41. 2
      lgsm/functions/compress_unreal2_maps.sh
  42. 2
      lgsm/functions/compress_ut99_maps.sh
  43. 2
      lgsm/functions/core_dl.sh
  44. 2
      lgsm/functions/core_getopt.sh
  45. 2
      lgsm/functions/fix_arma3.sh
  46. 2
      lgsm/functions/fix_csgo.sh
  47. 2
      lgsm/functions/fix_dst.sh
  48. 2
      lgsm/functions/fix_glibc.sh
  49. 2
      lgsm/functions/fix_kf.sh
  50. 2
      lgsm/functions/fix_kf2.sh
  51. 2
      lgsm/functions/fix_mta.sh
  52. 2
      lgsm/functions/fix_ro.sh
  53. 2
      lgsm/functions/fix_ss3.sh
  54. 2
      lgsm/functions/fix_steamcmd.sh
  55. 2
      lgsm/functions/fix_ut.sh
  56. 2
      lgsm/functions/fix_ut2k4.sh
  57. 2
      lgsm/functions/fix_ut3.sh
  58. 2
      lgsm/functions/info_config.sh
  59. 2
      lgsm/functions/info_distro.sh
  60. 2
      lgsm/functions/info_glibc.sh
  61. 2
      lgsm/functions/info_parms.sh
  62. 2
      lgsm/functions/install_complete.sh
  63. 2
      lgsm/functions/install_config.sh
  64. 2
      lgsm/functions/install_dst_token.sh
  65. 2
      lgsm/functions/install_gslt.sh
  66. 2
      lgsm/functions/install_header.sh
  67. 2
      lgsm/functions/install_logs.sh
  68. 2
      lgsm/functions/install_mta_resources.sh
  69. 2
      lgsm/functions/install_retry.sh
  70. 2
      lgsm/functions/install_server_dir.sh
  71. 2
      lgsm/functions/install_server_files.sh
  72. 2
      lgsm/functions/install_squad_license.sh
  73. 2
      lgsm/functions/install_ts3db.sh
  74. 2
      lgsm/functions/install_ut2k4_key.sh
  75. 2
      lgsm/functions/mods_core.sh
  76. 2
      lgsm/functions/mods_list.sh
  77. 2
      lgsm/functions/update_factorio.sh
  78. 2
      lgsm/functions/update_minecraft.sh
  79. 2
      lgsm/functions/update_mta.sh
  80. 2
      lgsm/functions/update_mumble.sh
  81. 2
      lgsm/functions/update_steamcmd.sh
  82. 2
      lgsm/functions/update_ts3.sh

2
lgsm/functions/alert_email.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Sending Email alert: ${email}"
sleep 0.5

2
lgsm/functions/alert_ifttt.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
json=$(cat <<EOF
{

2
lgsm/functions/alert_mailgun.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Sending Email alert: Mailgun: ${email}"
sleep 0.5

2
lgsm/functions/alert_pushbullet.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
json=$(cat <<EOF
{

2
lgsm/functions/alert_pushover.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Sending Pushover alert"
sleep 0.5

2
lgsm/functions/alert_telegram.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
json=$(cat <<EOF
{

2
lgsm/functions/check_config.sh

@ -5,7 +5,7 @@
# Description: Checks if the server config is missing and warns the user if needed.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ ! -e "${servercfgfullpath}" ]; then
if [ "${gamename}" != "Hurtworld" ]&&[ "${shortname}" != "ut3" ]&&[ "${shortname}" != "kf2" ]; then

2
lgsm/functions/check_executable.sh

@ -5,7 +5,7 @@
# Description: Checks if executable exists.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Check if executable exists
if [ ! -f "${executabledir}/${execname}" ]; then

2
lgsm/functions/check_ip.sh

@ -6,7 +6,7 @@
# If multiple interfaces are detected the user will need to manually set using ip="0.0.0.0".
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travistest}" != "1" ]; then
if [ ! -f "/bin/ip" ]; then

2
lgsm/functions/check_logs.sh

@ -5,7 +5,7 @@
# Description: Checks if log files exist.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_check_logs(){
fn_print_dots "Checking for log files"

2
lgsm/functions/check_root.sh

@ -5,7 +5,7 @@
# Description: Checks if the user tried to run the script as root.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "$(whoami)" = "root" ]; then
fn_print_fail_nl "Do NOT run this script as root!"

2
lgsm/functions/check_status.sh

@ -6,7 +6,7 @@
# Description: Checks the process status of the server. Either online or offline.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${gamename}" == "TeamSpeak 3" ]; then
# 1: Server is running

2
lgsm/functions/check_system_dir.sh

@ -5,7 +5,7 @@
# Description: Checks if systemdir/serverfiles is accessible.
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${function_selfname}" != "command_validate.sh" ]; then
checkdir="${serverfiles}"

2
lgsm/functions/check_system_requirements.sh

@ -6,7 +6,7 @@
# Description: Checks RAM requirements
local commandname="CHECK"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
info_distro.sh

2
lgsm/functions/command_backup.sh

@ -7,7 +7,7 @@
local commandname="BACKUP"
local commandaction="Backup"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh

2
lgsm/functions/command_console.sh

@ -6,7 +6,7 @@
local commandname="CONSOLE"
local commandaction="Console"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
fn_print_header

2
lgsm/functions/command_debug.sh

@ -6,7 +6,7 @@
local commandname="DEBUG"
local commandaction="Debug"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Trap to remove lockfile on quit.
fn_lockfile_trap(){

2
lgsm/functions/command_details.sh

@ -7,7 +7,7 @@
local commandname="DETAILS"
local commandaction="Details"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Run checks and gathers details to display.
check.sh

2
lgsm/functions/command_dev_debug.sh

@ -6,7 +6,7 @@
local commandname="DEV-DEBUG"
local commandaction="Dev-Debug"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ -f "${rootdir}/.dev-debug" ]; then
rm "${rootdir}/.dev-debug"

2
lgsm/functions/command_dev_detect_deps.sh

@ -6,7 +6,7 @@
local commandname="DETECT-DEPS"
local commandaction="Detect-Deps"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "================================="
echo "Dependencies Checker"

2
lgsm/functions/command_dev_detect_glibc.sh

@ -7,7 +7,7 @@
local commandname="DETECT-GLIBC"
local commandaction="Detect-Glibc"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "================================="
echo "GLIBC Requirements Checker"

2
lgsm/functions/command_dev_detect_ldd.sh

@ -7,7 +7,7 @@
local commandname="DETECT-LDD"
local commandaction="Detect-LDD"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "================================="
echo "Shared Object dependencies Checker"

2
lgsm/functions/command_dev_query_raw.sh

@ -6,7 +6,7 @@
local commandname="QUERY-RAW"
local commandaction="QUERY-RAW"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "================================="
echo "Gamedig Raw Output"

2
lgsm/functions/command_fastdl.sh

@ -7,7 +7,7 @@
local commandname="FASTDL"
local commandaction="FastDL"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh

2
lgsm/functions/command_install.sh

@ -7,7 +7,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
install_header.sh

2
lgsm/functions/command_install_resources_mta.sh

@ -6,7 +6,7 @@
local commandname="DEFAULT_RESOURCES"
local commandaction="Default Resources"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_install_resources(){
echo ""

2
lgsm/functions/command_mods_install.sh

@ -7,7 +7,7 @@
local commandname="MODS"
local commandaction="addons/mods"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
mods_core.sh

2
lgsm/functions/command_mods_remove.sh

@ -7,7 +7,7 @@
local commandname="MODS"
local commandaction="addons/mods"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
mods_core.sh

2
lgsm/functions/command_mods_update.sh

@ -7,7 +7,7 @@
local commandname="MODS"
local commandaction="Mods Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
mods_core.sh

2
lgsm/functions/command_monitor.sh

@ -8,7 +8,7 @@
local commandname="MONITOR"
local commandaction="Monitor"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_monitor_loop(){
# Will query up to 5 times every 15 seconds.

2
lgsm/functions/command_postdetails.sh

@ -7,7 +7,7 @@
local commandname="postdetails"
local commandaction="Postdetails"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Set posttarget to the appropriately-defined post destination.

2
lgsm/functions/command_restart.sh

@ -6,7 +6,7 @@
local commandname="RESTART"
local commandaction="Restarting"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
info_config.sh
exitbypass=1

4
lgsm/functions/command_start.sh

@ -7,7 +7,7 @@
local commandname="START"
local commandaction="Starting"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_start_teamspeak3(){
if [ ! -e "${servercfgfullpath}" ]; then
@ -155,7 +155,7 @@ sleep 0.5
echo ""
echo "Fix"
echo "================================="
if [ ! $(grep "tty:" /etc/group | grep "$(whoami)") ]; then
if [ ! $(grep "tty:" /etc/group|grep "$(whoami)") ]; then
echo "$(whoami) is not part of the tty group."
fn_script_log_info "$(whoami) is not part of the tty group."
group=$(grep tty /etc/group)

2
lgsm/functions/command_stop.sh

@ -7,7 +7,7 @@
local commandname="STOP"
local commandaction="Stopping"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Attempts graceful shutdown by sending the 'CTRL+c'.
fn_stop_graceful_ctrlc(){

2
lgsm/functions/command_test_alert.sh

@ -6,7 +6,7 @@
local commandname="ALERT"
local commandaction="Alert"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "${servername}"
sleep 0.5

2
lgsm/functions/command_ts3_server_pass.sh

@ -7,7 +7,7 @@
local commandname="TS3-CHANGE-PASS"
local commandaction="ServerAdmin Password Change"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_serveradmin_password_prompt(){
fn_print_header

2
lgsm/functions/command_update.sh

@ -6,7 +6,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots ""
sleep 0.5

2
lgsm/functions/command_update_linuxgsm.sh

@ -6,7 +6,7 @@
local commandname="UPDATE LinuxGSM"
local commandaction="Update LinuxGSM"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots "Updating LinuxGSM"
sleep 0.5

2
lgsm/functions/command_validate.sh

@ -6,7 +6,7 @@
local commandname="VALIDATE"
local commandaction="Validate"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_validation(){
echo ""

2
lgsm/functions/command_wipe.sh

@ -7,7 +7,7 @@
local commandname="WIPE"
local commandaction="data wipe"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
fn_print_header

2
lgsm/functions/compress_unreal2_maps.sh

@ -5,7 +5,7 @@
# Description: Compresses unreal maps.
local commandaction="Unreal Map Compressor"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
fn_print_header

2
lgsm/functions/compress_ut99_maps.sh

@ -5,7 +5,7 @@
# Description: Compresses unreal maps.
local commandaction="Unreal Map Compressor"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh
fn_print_header

2
lgsm/functions/core_dl.sh

@ -19,7 +19,7 @@
local commandname="DOWNLOAD"
local commandaction="Download"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_dl_md5(){
# Runs MD5 Check if available

2
lgsm/functions/core_getopt.sh

@ -4,7 +4,7 @@
# Website: https://linuxgsm.com
# Description: getopt arguments.
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
### Define all commands here ###
## User commands | Trigger commands | Description

2
lgsm/functions/fix_arma3.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: 20150 Segmentation fault (core dumped) error.
if [ ! -d "${HOME}/.local/share/Arma 3" ]||[ ! -d "${HOME}/.local/share/Arma 3 - Other Profiles" ]; then

2
lgsm/functions/fix_csgo.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: server not always creating steam_appid.txt file.
if [ ! -f "${serverfiles}/steam_appid.txt" ]; then

2
lgsm/functions/fix_dst.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: ./dontstarve_dedicated_server_nullrenderer: ./lib32/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer)
# Issue only occures on CentOS as libcurl-gnutls.so.4 is called libcurl.so.4 on CentOS.

2
lgsm/functions/fix_glibc.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
## i386

2
lgsm/functions/fix_kf.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "Applying WebAdmin ROOst.css fix."
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

2
lgsm/functions/fix_kf2.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_parms(){
parms="\"${defaultmap}?Game=KFGameContent.KFGameInfo_VersusSurvival\""

2
lgsm/functions/fix_mta.sh

@ -6,7 +6,7 @@
# Description: Installs the libmysqlclient for database functions on the server
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ ! -f "${lgsmdir}/lib/libmysqlclient.so.16" ]; then
fixname="libmysqlclient16"

2
lgsm/functions/fix_ro.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "Applying WebAdmin ROOst.css fix."
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

2
lgsm/functions/fix_ss3.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes https://steamcommunity.com/app/41070/discussions/0/353916981477716386/
if [ "$(diff "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Bin/steamclient.so" >/dev/null)" ]; then

2
lgsm/functions/fix_steamcmd.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam,or a local steamclient.so.
if [ ! -f "${HOME}/.steam/sdk32/steamclient.so" ]; then

2
lgsm/functions/fix_ut.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
#Set Binary Executable
echo "chmod +x ${executabledir}/${executable}"

2
lgsm/functions/fix_ut2k4.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "applying WebAdmin ut2003.css fix."
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

2
lgsm/functions/fix_ut3.sh

@ -6,7 +6,7 @@
local commandname="FIX"
local commandaction="Fix"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_parms(){
parms="server VCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?bIsDedicated=true?bIsLanMatch=false?bUsesStats=false?bShouldAdvertise=false?PureServer=1?bAllowJoinInProgress=true?ConfigSubDir=${servicename} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog}"

2
lgsm/functions/info_config.sh

@ -5,7 +5,7 @@
# Website: https://linuxgsm.com
# Description: Gets specific details from config files.
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
## Examples of filtering to get info from config files
# sed 's/foo//g' - remove foo

2
lgsm/functions/info_distro.sh

@ -5,7 +5,7 @@
# Description: Variables providing useful info on the Operating System such as disk and performace info.
# Used for command_details.sh, command_debug.sh and alert.sh.
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
### Distro information

2
lgsm/functions/info_glibc.sh

@ -4,7 +4,7 @@
# Website: https://linuxgsm.com
# Description: Stores details on servers Glibc requirements.
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${gamename}" == "ARK: Survival Evolved" ]; then
glibcrequired="2.15"

2
lgsm/functions/info_parms.sh

@ -4,7 +4,7 @@
# Website: https://linuxgsm.com
# Description: If specific parms are not set then this will be displayed in details.
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
## Examples of filtering to get info from config files
# sed 's/foo//g' - remove foo

2
lgsm/functions/install_complete.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo "================================="
echo "Install Complete!"

2
lgsm/functions/install_config.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Checks if server cfg dir exists, creates it if it doesn't
fn_check_cfgdir(){

2
lgsm/functions/install_dst_token.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo ""
echo "Enter ${gamename} Cluster Token"

2
lgsm/functions/install_gslt.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo ""
echo "Game Server Login Token"

2
lgsm/functions/install_header.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
clear
echo "================================="

2
lgsm/functions/install_logs.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${checklogs}" != "1" ]; then
echo ""

2
lgsm/functions/install_mta_resources.sh

@ -7,7 +7,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_information_nl "${gamename} will not function without resources!"
echo " * install default resources using ./${selfname} install-default-resources"

2
lgsm/functions/install_retry.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if fn_prompt_yn "Retry install?" Y; then
command_install.sh; exit

2
lgsm/functions/install_server_dir.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo ""
echo "Server Directory"

2
lgsm/functions/install_server_files.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_install_server_files(){
if [ "${gamename}" == "Battlefield: 1942" ]; then

2
lgsm/functions/install_squad_license.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo ""
echo "Squad Server License"

2
lgsm/functions/install_ts3db.sh

@ -7,7 +7,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_install_ts3db_mariadb(){
echo ""

2
lgsm/functions/install_ut2k4_key.sh

@ -6,7 +6,7 @@
local commandname="INSTALL"
local commandaction="Install"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo ""
echo "Enter ${gamename} CD Key"

2
lgsm/functions/mods_core.sh

@ -7,7 +7,7 @@
local commandname="MODS"
local commandaction="addons/mods"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Files and Directories
modsdir="${lgsmdir}/mods"

2
lgsm/functions/mods_list.sh

@ -10,7 +10,7 @@
local commandname="MODS"
local commandaction="List Mods"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# Get a proper URL for mods that don't provide a good one (optional)
fn_script_log_info "Retrieving latest mods URLs"

2
lgsm/functions/update_factorio.sh

@ -7,7 +7,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_factorio_dl(){
fn_fetch_file "https://www.factorio.com/get-download/${availablebuild}/headless/${factorioarch}" "${tmpdir}" "factorio_headless_${factorioarch}-${availablebuild}.tar.gz"

2
lgsm/functions/update_minecraft.sh

@ -6,7 +6,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_dl(){
fn_fetch_file "https://s3.amazonaws.com/Minecraft.Download/versions/${availablebuild}/minecraft_server.${availablebuild}.jar" "${tmpdir}" "minecraft_server.${availablebuild}.jar"

2
lgsm/functions/update_mta.sh

@ -6,7 +6,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_mta_dl(){
fn_fetch_file "http://linux.mtasa.com/dl/${numversion}/multitheftauto_linux_x64-${fullversion}.tar.gz" "${tmpdir}" "multitheftauto_linux_x64-${fullversion}.tar.gz"

2
lgsm/functions/update_mumble.sh

@ -7,7 +7,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_mumble_dl(){
fn_fetch_file "https://github.com/mumble-voip/mumble/releases/download/${availablebuild}/murmur-static_${mumblearch}-${availablebuild}.tar.bz2" "${tmpdir}" "murmur-static_${mumblearch}-${availablebuild}.tar.bz2"

2
lgsm/functions/update_steamcmd.sh

@ -6,7 +6,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh

2
lgsm/functions/update_ts3.sh

@ -6,7 +6,7 @@
local commandname="UPDATE"
local commandaction="Update"
function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
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" "${tmpdir}" "teamspeak3-server_linux_${ts3arch}-${ts3_version_number}.tar.bz2"

Loading…
Cancel
Save