Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + version=190106
- + shortname=atlas
- + gameservername=atlasserver
- +++ readlink -f ./atlasserver
- ++ dirname /home/xtoor/atlasserver/atlasserver
- + rootdir=/home/xtoor/atlasserver
- +++ readlink -f ./atlasserver
- ++ basename /home/xtoor/atlasserver/atlasserver
- + selfname=atlasserver
- + servicename=atlasserver
- + lockselfname=.atlasserver.lock
- + lgsmdir=/home/xtoor/atlasserver/lgsm
- + logdir=/home/xtoor/atlasserver/log
- + lgsmlogdir=/home/xtoor/atlasserver/log/lgsm
- + steamcmddir=/home/xtoor/atlasserver/steamcmd
- + serverfiles=/home/xtoor/atlasserver/serverfiles
- + functionsdir=/home/xtoor/atlasserver/lgsm/functions
- + libdir=/home/xtoor/atlasserver/lgsm/lib
- + tmpdir=/home/xtoor/atlasserver/lgsm/tmp
- + configdir=/home/xtoor/atlasserver/lgsm/config-lgsm
- + configdirserver=/home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver
- + configdirdefault=/home/xtoor/atlasserver/lgsm/config-default
- + userinput=install
- + githubuser=xtoor
- + githubrepo=LinuxGSM
- + githubbranch=master
- ++ whoami
- + '[' xtoor == root ']'
- + '[' atlas == core ']'
- + core_functions.sh
- + functionfile=core_functions.sh
- + fn_bootstrap_fetch_file_github lgsm/functions core_functions.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
- + github_file_url_dir=lgsm/functions
- + github_file_url_name=core_functions.sh
- + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
- + local_filedir=/home/xtoor/atlasserver/lgsm/functions
- + local_filename=core_functions.sh
- + chmodx=chmodx
- + run=run
- + forcedl=noforcedl
- + md5=nomd5
- + fn_bootstrap_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh /home/xtoor/atlasserver/lgsm/functions core_functions.sh chmodx run noforcedl nomd5
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
- + local_filedir=/home/xtoor/atlasserver/lgsm/functions
- + local_filename=core_functions.sh
- + chmodx=chmodx
- + run=run
- + forcedl=noforcedl
- + md5=nomd5
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_functions.sh ']'
- + '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++ command -v curl
- + curlpath=/usr/bin/curl
- ++ basename /usr/bin/curl
- + '[' curl == curl ']'
- + echo -en ' fetching core_functions.sh...\c'
- ++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_functions.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
- + curlcmd=
- + local exitcode=0
- + '[' 0 -ne 0 ']'
- + echo -e OK
- + '[' chmodx == chmodx ']'
- + chmod +x /home/xtoor/atlasserver/lgsm/functions/core_functions.sh
- + '[' -f /home/xtoor/atlasserver/lgsm/functions/core_functions.sh ']'
- + '[' run == run ']'
- + source /home/xtoor/atlasserver/lgsm/functions/core_functions.sh
- ++ core_legacy.sh
- ++ functionfile=core_legacy.sh
- +++ type fn_fetch_core_dl
- ++ '[' '' ']'
- ++ fn_bootstrap_fetch_file_github lgsm/functions core_legacy.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_legacy.sh
- ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_legacy.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ fn_bootstrap_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh /home/xtoor/atlasserver/lgsm/functions core_legacy.sh chmodx run noforcedl nomd5
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_legacy.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh ']'
- ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++ command -v curl
- ++ curlpath=/usr/bin/curl
- +++ basename /usr/bin/curl
- ++ '[' curl == curl ']'
- ++ echo -en ' fetching core_legacy.sh...\c'
- +++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
- ++ curlcmd=
- ++ local exitcode=0
- ++ '[' 0 -ne 0 ']'
- ++ echo -e OK
- ++ '[' chmodx == chmodx ']'
- ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh
- ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh ']'
- ++ '[' run == run ']'
- ++ source /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh
- +++ '[' -z /home/xtoor/atlasserver/serverfiles ']'
- +++ '[' -z /home/xtoor/atlasserver/log ']'
- +++ '[' -z /home/xtoor/atlasserver/log/lgsm ']'
- +++ '[' -z '' ']'
- +++ lgsmlog=
- +++ '[' -z '' ']'
- +++ lgsmlogdate=
- +++ '[' -z /home/xtoor/atlasserver/steamcmd ']'
- +++ '[' -z /home/xtoor/atlasserver/lgsm ']'
- +++ '[' -z /home/xtoor/atlasserver/lgsm/tmp ']'
- +++ '[' -z '' ']'
- +++ alertlog=
- +++ '[' -z '' ']'
- +++ '[' '' ']'
- +++ '[' '' ']'
- +++ '[' -z '' ']'
- +++ '[' '' ']'
- +++ '[' '' ']'
- +++ '[' -z '' ']'
- +++ '[' '' ']'
- ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/tmp ']'
- ++ core_messages.sh
- ++ functionfile=core_messages.sh
- +++ type fn_fetch_core_dl
- ++ '[' '' ']'
- ++ fn_bootstrap_fetch_file_github lgsm/functions core_messages.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_messages.sh
- ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_messages.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ fn_bootstrap_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh /home/xtoor/atlasserver/lgsm/functions core_messages.sh chmodx run noforcedl nomd5
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_messages.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_messages.sh ']'
- ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++ command -v curl
- ++ curlpath=/usr/bin/curl
- +++ basename /usr/bin/curl
- ++ '[' curl == curl ']'
- ++ echo -en ' fetching core_messages.sh...\c'
- +++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_messages.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
- ++ curlcmd=
- ++ local exitcode=0
- ++ '[' 0 -ne 0 ']'
- ++ echo -e OK
- ++ '[' chmodx == chmodx ']'
- ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_messages.sh
- ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_messages.sh ']'
- ++ '[' run == run ']'
- ++ source /home/xtoor/atlasserver/lgsm/functions/core_messages.sh
- ++ core_dl.sh
- ++ functionfile=core_dl.sh
- +++ type fn_fetch_core_dl
- ++ '[' '' ']'
- ++ fn_bootstrap_fetch_file_github lgsm/functions core_dl.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_dl.sh
- ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_dl.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ fn_bootstrap_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh /home/xtoor/atlasserver/lgsm/functions core_dl.sh chmodx run noforcedl nomd5
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_dl.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforcedl
- ++ md5=nomd5
- ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh ']'
- ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++ command -v curl
- ++ curlpath=/usr/bin/curl
- +++ basename /usr/bin/curl
- ++ '[' curl == curl ']'
- ++ echo -en ' fetching core_dl.sh...\c'
- +++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_dl.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
- ++ curlcmd=
- ++ local exitcode=0
- ++ '[' 0 -ne 0 ']'
- ++ echo -e OK
- ++ '[' chmodx == chmodx ']'
- ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
- ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh ']'
- ++ '[' run == run ']'
- ++ source /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
- +++ local commandname=DOWNLOAD
- +++ local commandaction=Download
- +++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
- ++++ basename /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
- +++ local function_selfname=core_dl.sh
- ++++ command -v curl
- +++ curlpath=/usr/bin/curl
- ++++ basename /usr/bin/curl
- +++ '[' curl '!=' curl ']'
- ++ core_trap.sh
- ++ functionfile=core_trap.sh
- ++ fn_fetch_function
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_trap.sh
- ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_trap.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforce
- ++ md5=nomd5
- ++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh /home/xtoor/atlasserver/lgsm/functions core_trap.sh chmodx run noforce nomd5
- ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
- ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++ local_filename=core_trap.sh
- ++ chmodx=chmodx
- ++ run=run
- ++ forcedl=noforce
- ++ md5=nomd5
- ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_trap.sh ']'
- ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++ trap fn_fetch_trap INT
- ++ '[' sh == bz2 ']'
- ++ '[' sh == gz ']'
- ++ '[' sh == zip ']'
- ++ '[' sh == jar ']'
- ++ '[' sh == xz ']'
- ++ echo -en ' fetching core_trap.sh...\c'
- +++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_trap.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
- ++ curlcmd=
- ++ local exitcode=0
- ++ '[' 0 -ne 0 ']'
- ++ fn_print_ok_eol_nl
- ++ echo -e OK
- ++ '[' -f '' ']'
- ++ trap - INT
- ++ '[' chmodx == chmodx ']'
- ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_trap.sh
- ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_trap.sh ']'
- ++ fn_dl_md5
- ++ '[' nomd5 '!=' 0 ']'
- ++ '[' nomd5 '!=' nomd5 ']'
- ++ '[' run == run ']'
- ++ source /home/xtoor/atlasserver/lgsm/functions/core_trap.sh
- +++ trap fn_exit_trap INT
- + '[' atlas '!=' core-dep ']'
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
- + mkdir -p /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
- + fn_fetch_config lgsm/config-default/config-lgsm/atlasserver _default.cfg /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver _default.cfg nochmodx norun noforcedl nomd5
- + github_file_url_dir=lgsm/config-default/config-lgsm/atlasserver
- + github_file_url_name=_default.cfg
- + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
- + local_filedir=/home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
- + local_filename=_default.cfg
- + chmodx=nochmodx
- + run=norun
- + forcedl=noforce
- + md5=nomd5
- + fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver _default.cfg nochmodx norun noforce nomd5
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
- + local_filedir=/home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
- + local_filename=_default.cfg
- + chmodx=nochmodx
- + run=norun
- + forcedl=noforce
- + md5=nomd5
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
- + '[' '!' -d /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver ']'
- + trap fn_fetch_trap INT
- + '[' cfg == bz2 ']'
- + '[' cfg == gz ']'
- + '[' cfg == zip ']'
- + '[' cfg == jar ']'
- + '[' cfg == xz ']'
- + echo -en ' fetching _default.cfg...\c'
- ++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
- + curlcmd=
- + local exitcode=0
- + '[' 0 -ne 0 ']'
- + fn_print_ok_eol_nl
- + echo -e OK
- + '[' -f '' ']'
- + trap - INT
- + '[' nochmodx == chmodx ']'
- + '[' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
- + fn_dl_md5
- + '[' nomd5 '!=' 0 ']'
- + '[' nomd5 '!=' nomd5 ']'
- + '[' norun == run ']'
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg ']'
- ++ diff -q /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg
- + function_file_diff=
- + '[' '' '!=' '' ']'
- + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg
- ++ ip='multihomeIP here'
- ++ SeamlessIP='ExternalIP here'
- ++ defaultmap=Ocean
- ++ maxplayers=20
- ++ rps=25
- ++ extraparms=' -log -server -NoBattlEye -allcores -USEALLAVAILABLECORES -servergamelog'
- ++ ServerAdminPassword=pass
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/common.cfg ']'
- + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/common.cfg
- ++ ip=0.0.0.0
- ++ SeamlessIP=72.90.180.15
- ++ defaultmap=Ocean
- ++ maxplayers=20
- ++ rps=25
- ++ extraparms=' -log -server -NoBattlEye -allcores -USEALLAVAILABLECORES -servergamelog'
- ++ ServerAdminPassword=pass
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/atlasserver.cfg ']'
- + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/atlasserver.cfg
- ++ port=5755
- ++ queryport=57555
- ++ rconport=32306
- ++ ServerX=0
- ++ ServerY=0
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/tmp/linuxgsm.sh ']'
- + fn_ansi_loader
- + '[' '' '!=' off ']'
- + default='\e[0m'
- + red='\e[31m'
- + lightred='\e[91m'
- + green='\e[32m'
- + lightgreen='\e[92m'
- + yellow='\e[33m'
- + lightyellow='\e[93m'
- + blue='\e[34m'
- + lightblue='\e[94m'
- + magenta='\e[35m'
- + lightmagenta='\e[95m'
- + cyan='\e[36m'
- + lightcyan='\e[96m'
- + creeol='\r\033[K'
- + '[' '' '!=' 1 ']'
- + getopt=install
- + core_getopt.sh
- + functionfile=core_getopt.sh
- + fn_fetch_function
- + github_file_url_dir=lgsm/functions
- + github_file_url_name=core_getopt.sh
- + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
- + local_filedir=/home/xtoor/atlasserver/lgsm/functions
- + local_filename=core_getopt.sh
- + chmodx=chmodx
- + run=run
- + forcedl=noforce
- + md5=nomd5
- + fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh /home/xtoor/atlasserver/lgsm/functions core_getopt.sh chmodx run noforce nomd5
- + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
- + local_filedir=/home/xtoor/atlasserver/lgsm/functions
- + local_filename=core_getopt.sh
- + chmodx=chmodx
- + run=run
- + forcedl=noforce
- + md5=nomd5
- + '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh ']'
- + '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- + trap fn_fetch_trap INT
- + '[' sh == bz2 ']'
- + '[' sh == gz ']'
- + '[' sh == zip ']'
- + '[' sh == jar ']'
- + '[' sh == xz ']'
- + echo -en ' fetching core_getopt.sh...\c'
- ++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
- + curlcmd=
- + local exitcode=0
- + '[' 0 -ne 0 ']'
- + fn_print_ok_eol_nl
- + echo -e '\e[32mOK\e[0m'
- + '[' -f '' ']'
- + trap - INT
- + '[' chmodx == chmodx ']'
- + chmod +x /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
- + '[' -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh ']'
- + fn_dl_md5
- + '[' nomd5 '!=' 0 ']'
- + '[' nomd5 '!=' nomd5 ']'
- + '[' run == run ']'
- + source /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
- ++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
- +++ basename /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
- ++ local function_selfname=core_getopt.sh
- ++ cmd_install=("i;install" "command_install.sh" "Install the server.")
- ++ cmd_auto_install=("ai;auto-install" "fn_autoinstall" "Install the server without prompts.")
- ++ cmd_start=("st;start" "command_start.sh" "Start the server.")
- ++ cmd_stop=("sp;stop" "command_stop.sh" "Stop the server.")
- ++ cmd_restart=("r;restart" "command_restart.sh" "Restart the server.")
- ++ cmd_details=("dt;details" "command_details.sh" "Display server information.")
- ++ cmd_postdetails=("pd;postdetails" "command_postdetails.sh" "Post details to hastebin (removing passwords).")
- ++ cmd_backup=("b;backup" "command_backup.sh" "Create backup archives of the server.")
- ++ cmd_update_linuxgsm=("ul;update-lgsm;uf;update-functions" "command_update_linuxgsm.sh" "Check and apply any LinuxGSM updates.")
- ++ cmd_test_alert=("ta;test-alert" "command_test_alert.sh" "Send a test alert.")
- ++ cmd_monitor=("m;monitor" "command_monitor.sh" "Check server status and restart if crashed.")
- ++ cmd_donate=("do;donate" "command_donate.sh" "Donation options.")
- ++ cmd_console=("c;console" "command_console.sh" "Access server console.")
- ++ cmd_debug=("d;debug" "command_debug.sh" "Start server directly in your terminal.")
- ++ cmd_update=("u;update" "command_update.sh" "Check and apply any server updates.")
- ++ cmd_force_update=("fu;force-update;update-restart;ur" "forceupdate=1; command_update.sh" "Apply server updates bypassing check.")
- ++ cmd_validate=("v;validate" "command_validate.sh" "Validate server files with SteamCMD.")
- ++ cmd_mods_install=("mi;mods-install" "command_mods_install.sh" "View and install available mods/addons.")
- ++ cmd_mods_remove=("mr;mods-remove" "command_mods_remove.sh" "View and remove an installed mod/addon.")
- ++ cmd_mods_update=("mu;mods-update" "command_mods_update.sh" "Update installed mods/addons.")
- ++ cmd_change_password=("pw;change-password" "command_ts3_server_pass.sh" "Change TS3 serveradmin password.")
- ++ cmd_install_default_resources=("ir;install-default-resources" "command_install_resources_mta.sh" "Install the MTA default resources.")
- ++ cmd_wipe=("wi;wipe" "command_wipe.sh" "Wipe your main game server data.")
- ++ cmd_wipeall=("wa;wipeall" "wipeall=1; command_wipe.sh" "Wipe your game server data and blueprints.")
- ++ cmd_map_compressor_u99=("mc;map-compressor" "compress_ut99_maps.sh" "Compresses all ${gamename} server maps.")
- ++ cmd_map_compressor_u2=("mc;map-compressor" "compress_unreal2_maps.sh" "Compresses all ${gamename} server maps.")
- ++ cmd_install_cdkey=("cd;server-cd-key" "install_ut2k4_key.sh" "Add your server cd key.")
- ++ cmd_install_dst_token=("ct;cluster-token" "install_dst_token.sh" "Configure cluster token.")
- ++ cmd_install_squad_license=("li;license" "install_squad_license.sh" "Add your Squad server license.")
- ++ cmd_fastdl=("fd;fastdl" "command_fastdl.sh" "Build a FastDL directory.")
- ++ cmd_dev_debug=("dev;developer" "command_dev_debug.sh" "Enable developer Mode.")
- ++ cmd_dev_detect_deps=("dd;detect-deps" "command_dev_detect_deps.sh" "Detect required dependencies.")
- ++ cmd_dev_detect_glibc=("dg;detect-glibc" "command_dev_detect_glibc.sh" "Detect required glibc.")
- ++ cmd_dev_detect_ldd=("dl;detect-ldd" "command_dev_detect_ldd.sh" "Detect required dynamic dependencies.")
- ++ cmd_dev_query_raw=("qr;query-raw" "command_dev_query_raw.sh" "The raw output of gamedig and gsquery.")
- ++ cmd_dev_clear_functions=("cf;clear-functions" "command_dev_clear_functions.sh" "Delete the contents of the functions dir.")
- ++ currentopt=("${cmd_start[@]}" "${cmd_stop[@]}" "${cmd_restart[@]}" "${cmd_monitor[@]}" "${cmd_test_alert[@]}" "${cmd_details[@]}" "${cmd_postdetails[@]}")
- ++ currentopt+=("${cmd_update_linuxgsm[@]}")
- ++ '[' '' '!=' quake ']'
- ++ '[' '' '!=' idtech2 ']'
- ++ '[' '' '!=' idtech3 ']'
- ++ '[' '' '!=' iw2.0 ']'
- ++ '[' '' '!=' iw3.0 ']'
- ++ '[' atlas '!=' bf1942 ']'
- ++ '[' atlas '!=' samp ']'
- ++ currentopt+=("${cmd_update[@]}")
- ++ '[' -n '' ']'
- ++ '[' atlas == mta ']'
- ++ '[' -n '' ']'
- ++ currentopt+=("${cmd_backup[@]}")
- ++ '[' atlas '!=' ts3 ']'
- ++ currentopt+=("${cmd_console[@]}" "${cmd_debug[@]}")
- ++ '[' '' == source ']'
- ++ '[' atlas '!=' ts3 ']'
- ++ currentopt+=("${cmd_change_password[@]}")
- ++ '[' atlas == rust ']'
- ++ '[' '' == unreal2 ']'
- ++ '[' '' == unreal ']'
- ++ '[' atlas == dst ']'
- ++ '[' atlas == mta ']'
- ++ '[' atlas == squad ']'
- ++ '[' '' == source ']'
- ++ '[' atlas == rust ']'
- ++ '[' atlas == hq ']'
- ++ '[' atlas == sdtd ']'
- ++ currentopt+=("${cmd_install[@]}" "${cmd_auto_install[@]}")
- ++ currentopt+=("${cmd_dev_debug[@]}")
- ++ '[' -f .dev-debug ']'
- ++ currentopt+=("${cmd_dev_detect_deps[@]}" "${cmd_dev_detect_glibc[@]}" "${cmd_dev_detect_ldd[@]}" "${cmd_dev_query_raw[@]}" "${cmd_dev_clear_functions[@]}")
- ++ currentopt+=("${cmd_donate[@]}")
- ++ optcommands=()
- ++ index=0
- ++ (( index=0 ))
- ++ (( index < 66 ))
- +++ echo 'st;start'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'st;start'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'st;start'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'sp;stop'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'sp;stop'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'sp;stop'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'r;restart'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'r;restart'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'r;restart'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'm;monitor'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'm;monitor'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'm;monitor'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'ta;test-alert'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ta;test-alert'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ta;test-alert'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dt;details'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dt;details'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dt;details'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'pd;postdetails'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'pd;postdetails'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'pd;postdetails'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=4
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 4 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 4 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 4 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=3 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 4 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=4 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 4 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'u;update'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'u;update'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'u;update'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'b;backup'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'b;backup'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'b;backup'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'c;console'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'c;console'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'c;console'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'd;debug'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'd;debug'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'd;debug'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'pw;change-password'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'pw;change-password'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'pw;change-password'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'i;install'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'i;install'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'i;install'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'ai;auto-install'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ai;auto-install'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'ai;auto-install'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dev;developer'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dev;developer'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dev;developer'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dd;detect-deps'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dd;detect-deps'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dd;detect-deps'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dg;detect-glibc'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dg;detect-glibc'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dg;detect-glibc'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dl;detect-ldd'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dl;detect-ldd'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'dl;detect-ldd'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'qr;query-raw'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'qr;query-raw'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'qr;query-raw'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'cf;clear-functions'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'cf;clear-functions'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'cf;clear-functions'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'do;donate'
- +++ awk -F ';' '{ print NF }'
- ++ cmdamount=2
- ++ (( cmdindex=1 ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'do;donate'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
- +++ echo 'do;donate'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ (( cmdindex++ ))
- ++ (( cmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- ++ '[' -z install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' st == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' start == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' sp == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' stop == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' r == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' restart == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' m == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' monitor == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' ta == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' test-alert == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' dt == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' details == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' pd == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' postdetails == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' ul == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' update-lgsm == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' uf == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' update-functions == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' u == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' update == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' b == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' backup == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' c == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' console == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' d == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' debug == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' pw == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' change-password == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' i == install ']'
- ++ for i in "${optcommands[@]}"
- ++ '[' install == install ']'
- ++ index=0
- ++ (( index=0 ))
- ++ (( index < 66 ))
- +++ echo 'st;start'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'st;start'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' st == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'st;start'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' start == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'sp;stop'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'sp;stop'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' sp == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'sp;stop'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' stop == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'r;restart'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'r;restart'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' r == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'r;restart'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' restart == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'm;monitor'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'm;monitor'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' m == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'm;monitor'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' monitor == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'ta;test-alert'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'ta;test-alert'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' ta == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'ta;test-alert'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' test-alert == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'dt;details'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'dt;details'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' dt == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'dt;details'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' details == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'pd;postdetails'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'pd;postdetails'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' pd == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'pd;postdetails'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' postdetails == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=4
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 4 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' ul == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 4 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' update-lgsm == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 4 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=3 '{ print $x }'
- ++ '[' uf == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 4 ))
- +++ echo 'ul;update-lgsm;uf;update-functions'
- +++ awk -F ';' -v x=4 '{ print $x }'
- ++ '[' update-functions == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 4 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'u;update'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'u;update'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' u == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'u;update'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' update == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'b;backup'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'b;backup'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' b == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'b;backup'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' backup == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'c;console'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'c;console'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' c == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'c;console'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' console == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'd;debug'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'd;debug'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' d == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'd;debug'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' debug == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'pw;change-password'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'pw;change-password'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' pw == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'pw;change-password'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' change-password == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- ++ (( index+=3 ))
- ++ (( index < 66 ))
- +++ echo 'i;install'
- +++ awk -F ';' '{ print NF }'
- ++ currcmdamount=2
- ++ (( currcmdindex=1 ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'i;install'
- +++ awk -F ';' -v x=1 '{ print $x }'
- ++ '[' i == install ']'
- ++ (( currcmdindex++ ))
- ++ (( currcmdindex <= 2 ))
- +++ echo 'i;install'
- +++ awk -F ';' -v x=2 '{ print $x }'
- ++ '[' install == install ']'
- ++ eval command_install.sh
- +++ command_install.sh
- +++ functionfile=command_install.sh
- +++ fn_fetch_function
- +++ github_file_url_dir=lgsm/functions
- +++ github_file_url_name=command_install.sh
- +++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
- +++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
- +++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++ local_filename=command_install.sh
- +++ chmodx=chmodx
- +++ run=run
- +++ forcedl=noforce
- +++ md5=nomd5
- +++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh /home/xtoor/atlasserver/lgsm/functions command_install.sh chmodx run noforce nomd5
- +++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
- +++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++ local_filename=command_install.sh
- +++ chmodx=chmodx
- +++ run=run
- +++ forcedl=noforce
- +++ md5=nomd5
- +++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh ']'
- +++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++ trap fn_fetch_trap INT
- +++ '[' sh == bz2 ']'
- +++ '[' sh == gz ']'
- +++ '[' sh == zip ']'
- +++ '[' sh == jar ']'
- +++ '[' sh == xz ']'
- +++ echo -en ' fetching command_install.sh...\c'
- ++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/command_install.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
- +++ curlcmd=
- +++ local exitcode=0
- +++ '[' 0 -ne 0 ']'
- +++ fn_print_ok_eol_nl
- +++ echo -e '\e[32mOK\e[0m'
- +++ '[' -f '' ']'
- +++ trap - INT
- +++ '[' chmodx == chmodx ']'
- +++ chmod +x /home/xtoor/atlasserver/lgsm/functions/command_install.sh
- +++ '[' -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh ']'
- +++ fn_dl_md5
- +++ '[' nomd5 '!=' 0 ']'
- +++ '[' nomd5 '!=' nomd5 ']'
- +++ '[' run == run ']'
- +++ source /home/xtoor/atlasserver/lgsm/functions/command_install.sh
- ++++ local commandname=INSTALL
- ++++ local commandaction=Install
- ++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh
- +++++ basename /home/xtoor/atlasserver/lgsm/functions/command_install.sh
- ++++ local function_selfname=command_install.sh
- ++++ check.sh
- ++++ functionfile=check.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check.sh
- ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=check.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh /home/xtoor/atlasserver/lgsm/functions check.sh chmodx run noforce nomd5
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=check.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check.sh ']'
- ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++ trap fn_fetch_trap INT
- ++++ '[' sh == bz2 ']'
- ++++ '[' sh == gz ']'
- ++++ '[' sh == zip ']'
- ++++ '[' sh == jar ']'
- ++++ '[' sh == xz ']'
- ++++ echo -en ' fetching check.sh...\c'
- +++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/check.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
- ++++ curlcmd=
- ++++ local exitcode=0
- ++++ '[' 0 -ne 0 ']'
- ++++ fn_print_ok_eol_nl
- ++++ echo -e '\e[32mOK\e[0m'
- ++++ '[' -f '' ']'
- ++++ trap - INT
- ++++ '[' chmodx == chmodx ']'
- ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check.sh
- ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/xtoor/atlasserver/lgsm/functions/check.sh
- +++++ local commandname=CHECK
- +++++ '[' install '!=' install ']'
- +++++ check_tmuxception.sh
- +++++ functionfile=check_tmuxception.sh
- +++++ fn_fetch_function
- +++++ github_file_url_dir=lgsm/functions
- +++++ github_file_url_name=check_tmuxception.sh
- +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_tmuxception.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh /home/xtoor/atlasserver/lgsm/functions check_tmuxception.sh chmodx run noforce nomd5
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_tmuxception.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh ']'
- +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++ trap fn_fetch_trap INT
- +++++ '[' sh == bz2 ']'
- +++++ '[' sh == gz ']'
- +++++ '[' sh == zip ']'
- +++++ '[' sh == jar ']'
- +++++ '[' sh == xz ']'
- +++++ echo -en ' fetching check_tmuxception.sh...\c'
- ++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
- +++++ curlcmd=
- +++++ local exitcode=0
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ '[' -f '' ']'
- +++++ trap - INT
- +++++ '[' chmodx == chmodx ']'
- +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh
- +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh ']'
- +++++ fn_dl_md5
- +++++ '[' nomd5 '!=' 0 ']'
- +++++ '[' nomd5 '!=' nomd5 ']'
- +++++ '[' run == run ']'
- +++++ source /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh
- ++++++ local commandname=check
- ++++++ fn_check_is_in_tmux
- ++++++ '[' -n '' ']'
- ++++++ fn_check_is_in_screen
- ++++++ '[' -n '' ']'
- ++++++ whoami
- +++++ '[' xtoor '!=' root ']'
- +++++ '[' command_install.sh '!=' command_monitor.sh ']'
- +++++ check_permissions.sh
- +++++ functionfile=check_permissions.sh
- +++++ fn_fetch_function
- +++++ github_file_url_dir=lgsm/functions
- +++++ github_file_url_name=check_permissions.sh
- +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_permissions.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh /home/xtoor/atlasserver/lgsm/functions check_permissions.sh chmodx run noforce nomd5
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_permissions.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh ']'
- +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++ trap fn_fetch_trap INT
- +++++ '[' sh == bz2 ']'
- +++++ '[' sh == gz ']'
- +++++ '[' sh == zip ']'
- +++++ '[' sh == jar ']'
- +++++ '[' sh == xz ']'
- +++++ echo -en ' fetching check_permissions.sh...\c'
- ++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
- +++++ curlcmd=
- +++++ local exitcode=0
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ '[' -f '' ']'
- +++++ trap - INT
- +++++ '[' chmodx == chmodx ']'
- +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh
- +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh ']'
- +++++ fn_dl_md5
- +++++ '[' nomd5 '!=' 0 ']'
- +++++ '[' nomd5 '!=' nomd5 ']'
- +++++ '[' run == run ']'
- +++++ source /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh
- ++++++ local commandname=CHECK
- +++++++ whoami
- ++++++ '[' xtoor '!=' root ']'
- ++++++ fn_check_ownership
- ++++++ '[' -f /home/xtoor/atlasserver/atlasserver ']'
- +++++++ wc -l
- ++++++++ whoami
- +++++++ find /home/xtoor/atlasserver/atlasserver -not -user xtoor
- ++++++ '[' 0 -ne 0 ']'
- ++++++ '[' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++++ wc -l
- ++++++++ whoami
- +++++++ find /home/xtoor/atlasserver/lgsm/functions -not -user xtoor
- ++++++ '[' 0 -ne 0 ']'
- ++++++ '[' -d /home/xtoor/atlasserver/serverfiles ']'
- +++++++ wc -l
- ++++++++ whoami
- +++++++ find /home/xtoor/atlasserver/serverfiles -not -user xtoor
- ++++++ '[' 0 -ne 0 ']'
- ++++++ '[' '' == 1 ']'
- ++++++ '[' '' == 1 ']'
- ++++++ '[' '' == 1 ']'
- ++++++ fn_check_permissions
- ++++++ '[' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++++ find /home/xtoor/atlasserver/lgsm/functions -type f -not -executable
- +++++++ wc -l
- ++++++ '[' 0 -ne 0 ']'
- ++++++ '[' -n /home/xtoor/atlasserver ']'
- +++++++ stat -c %a /home/xtoor/atlasserver
- ++++++ rootdirperm=775
- ++++++ userrootdirperm=7
- ++++++ grouprootdirperm=7
- ++++++ '[' 7 '!=' 7 ']'
- +++++++ basename ''
- ++++++ execname=
- ++++++ '[' -f / ']'
- ++++++ '[' command_install.sh == command_start.sh ']'
- +++++ '[' command_install.sh '!=' command_install.sh ']'
- +++++ allowed_commands_array=(command_start.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- ++++++ whoami
- +++++ '[' xtoor '!=' root ']'
- +++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_install.sh == command_install.sh ']'
- +++++ check_glibc.sh
- +++++ functionfile=check_glibc.sh
- +++++ fn_fetch_function
- +++++ github_file_url_dir=lgsm/functions
- +++++ github_file_url_name=check_glibc.sh
- +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_glibc.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh /home/xtoor/atlasserver/lgsm/functions check_glibc.sh chmodx run noforce nomd5
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_glibc.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh ']'
- +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++ trap fn_fetch_trap INT
- +++++ '[' sh == bz2 ']'
- +++++ '[' sh == gz ']'
- +++++ '[' sh == zip ']'
- +++++ '[' sh == jar ']'
- +++++ '[' sh == xz ']'
- +++++ echo -en ' fetching check_glibc.sh...\c'
- ++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
- +++++ curlcmd=
- +++++ local exitcode=0
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ '[' -f '' ']'
- +++++ trap - INT
- +++++ '[' chmodx == chmodx ']'
- +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh
- +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh ']'
- +++++ fn_dl_md5
- +++++ '[' nomd5 '!=' 0 ']'
- +++++ '[' nomd5 '!=' nomd5 ']'
- +++++ '[' run == run ']'
- +++++ source /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh
- ++++++ local commandname=CHECK
- ++++++ info_glibc.sh
- ++++++ functionfile=info_glibc.sh
- ++++++ fn_fetch_function
- ++++++ github_file_url_dir=lgsm/functions
- ++++++ github_file_url_name=info_glibc.sh
- ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_glibc.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh /home/xtoor/atlasserver/lgsm/functions info_glibc.sh chmodx run noforce nomd5
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_glibc.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh ']'
- ++++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++++ trap fn_fetch_trap INT
- ++++++ '[' sh == bz2 ']'
- ++++++ '[' sh == gz ']'
- ++++++ '[' sh == zip ']'
- ++++++ '[' sh == jar ']'
- ++++++ '[' sh == xz ']'
- ++++++ echo -en ' fetching info_glibc.sh...\c'
- +++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
- ++++++ curlcmd=
- ++++++ local exitcode=0
- ++++++ '[' 0 -ne 0 ']'
- ++++++ fn_print_ok_eol_nl
- ++++++ echo -e '\e[32mOK\e[0m'
- ++++++ '[' -f '' ']'
- ++++++ trap - INT
- ++++++ '[' chmodx == chmodx ']'
- ++++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
- ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh ']'
- ++++++ fn_dl_md5
- ++++++ '[' nomd5 '!=' 0 ']'
- ++++++ '[' nomd5 '!=' nomd5 ']'
- ++++++ '[' run == run ']'
- ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
- +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
- ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
- +++++++ local function_selfname=info_glibc.sh
- ++++++ info_distro.sh
- ++++++ functionfile=info_distro.sh
- ++++++ fn_fetch_function
- ++++++ github_file_url_dir=lgsm/functions
- ++++++ github_file_url_name=info_distro.sh
- ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_distro.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh /home/xtoor/atlasserver/lgsm/functions info_distro.sh chmodx run noforce nomd5
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_distro.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
- ++++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++++ trap fn_fetch_trap INT
- ++++++ '[' sh == bz2 ']'
- ++++++ '[' sh == gz ']'
- ++++++ '[' sh == zip ']'
- ++++++ '[' sh == jar ']'
- ++++++ '[' sh == xz ']'
- ++++++ echo -en ' fetching info_distro.sh...\c'
- +++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/info_distro.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ curlcmd=
- ++++++ local exitcode=0
- ++++++ '[' 0 -ne 0 ']'
- ++++++ fn_print_ok_eol_nl
- ++++++ echo -e '\e[32mOK\e[0m'
- ++++++ '[' -f '' ']'
- ++++++ trap - INT
- ++++++ '[' chmodx == chmodx ']'
- ++++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
- ++++++ fn_dl_md5
- ++++++ '[' nomd5 '!=' 0 ']'
- ++++++ '[' nomd5 '!=' nomd5 ']'
- ++++++ '[' run == run ']'
- ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- +++++++ local function_selfname=info_distro.sh
- ++++++++ uname -m
- +++++++ arch=x86_64
- ++++++++ uname -r
- +++++++ kernel=4.15.0-45-generic
- +++++++ distro_info_array=(os-release lsb_release hostnamectl debian_version redhat-release)
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' os-release == os-release ']'
- ++++++++ grep PRETTY_NAME /etc/os-release
- ++++++++ sed s/PRETTY_NAME=//g
- ++++++++ sed 's/\"//g'
- ++++++++ tr -d '="'
- +++++++ distroname='Ubuntu 18.04.1 LTS'
- ++++++++ grep VERSION_ID /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/VERSION_ID=//g
- +++++++ distroversion=18.04
- ++++++++ grep ID /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/ID=//g
- ++++++++ grep -v ID_
- ++++++++ grep -v _ID
- +++++++ distroid=ubuntu
- ++++++++ grep VERSION_CODENAME /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/VERSION_CODENAME=//g
- +++++++ distrocodename=bionic
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' lsb_release == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' lsb_release == lsb_release ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ '[' -z 18.04 ']'
- +++++++ '[' -z ubuntu ']'
- +++++++ '[' -z bionic ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' hostnamectl == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' hostnamectl == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' hostnamectl == hostnamectl ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' debian_version == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' debian_version == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' debian_version == hostnamectl ']'
- +++++++ '[' -f /etc/debian_version ']'
- +++++++ '[' debian_version == debian_version ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ '[' -z 18.04 ']'
- +++++++ '[' -z ubuntu ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' redhat-release == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' redhat-release == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' redhat-release == hostnamectl ']'
- +++++++ '[' -f /etc/debian_version ']'
- +++++++ '[' redhat-release == debian_version ']'
- +++++++ '[' -f /etc/redhat-release ']'
- ++++++++ ldd --version
- ++++++++ sed -n '1s/.* //p'
- +++++++ glibcversion=2.27
- ++++++++ command -V tmux
- +++++++ '[' -z 'tmux is /usr/bin/tmux' ']'
- ++++++++ tmux -V
- ++++++++ tr -cd '[:digit:]'
- ++++++++ sed -n '1 p'
- ++++++++ sed 's/tmux //'
- +++++++ '[' 26 -lt 16 ']'
- ++++++++ tmux -V
- +++++++ tmuxv='tmux 2.6'
- +++++++ uptime='260470.74 513844.66'
- +++++++ uptime=260470
- +++++++ minutes=21
- +++++++ hours=0
- +++++++ days=3
- ++++++++ uptime
- ++++++++ awk -F 'load average: ' '{ print $2 }'
- +++++++ load='0.16, 0.07, 0.01'
- ++++++++ command -v numfmt
- +++++++ '[' -n /usr/bin/numfmt ']'
- ++++++++ grep MemTotal /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemtotalkb=4039372
- ++++++++ grep '^MemFree' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemfreekb=244752
- ++++++++ grep '^Buffers' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmembufferskb=525172
- ++++++++ grep '^Cached' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemcachedkb=2532372
- ++++++++ grep '^SReclaimable' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemreclaimablekb=277796
- +++++++ grep -q '^MemAvailable' /proc/meminfo
- ++++++++ grep '^MemAvailable' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemactualfreekb=3288056
- +++++++ physmemtotalmb=3944
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4039372K
- +++++++ physmemtotal=3.9GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 3288056K
- +++++++ physmemfree=3.2GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 459280K
- +++++++ physmemused=449MB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 3288056K
- +++++++ physmemavailable=3.2GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 2810168K
- +++++++ physmemcached=2.7GB
- +++++++++ grep '^SwapTotal' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4038652K
- +++++++ swaptotal=3.9GB
- +++++++++ grep '^SwapFree' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4038128K
- +++++++ swapfree=3.9GB
- +++++++++ grep '^SwapTotal' /proc/meminfo
- +++++++++ awk '{print $2}'
- +++++++++ grep '^SwapFree' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 524K
- +++++++ swapused=524KB
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ awk '{print $1}'
- ++++++++ grep -v Filesystem
- +++++++ filesystem=/dev/sda2
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ awk '{print $2}'
- ++++++++ grep -v Filesystem
- +++++++ totalspace=293G
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ grep -v Filesystem
- ++++++++ awk '{print $3}'
- +++++++ usedspace=68G
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ grep -v Filesystem
- ++++++++ awk '{print $4}'
- +++++++ availspace=211G
- ++++++++ du -sh /home/xtoor/atlasserver
- ++++++++ awk '{print $1}'
- +++++++ rootdirdu=296K
- +++++++ '[' -z 296K ']'
- ++++++++ du -sh /home/xtoor/atlasserver/serverfiles
- ++++++++ awk '{print $1}'
- +++++++ serverfilesdu=4.0K
- +++++++ '[' -z 4.0K ']'
- ++++++++ du -sh --exclude= /home/xtoor/atlasserver/serverfiles
- ++++++++ awk '{print $1}'
- +++++++ rootdirduexbackup=4.0K
- +++++++ '[' -z 4.0K ']'
- +++++++ '[' -d '' ']'
- +++++++ '[' -z '' ']'
- ++++++++ /usr/bin/curl -4 -m 3 ifconfig.co
- +++++++ extip=72.90.180.15
- +++++++ exitcode=0
- +++++++ '[' 0 -eq 0 ']'
- +++++++ echo 72.90.180.15
- ++++++++ command -v jq
- +++++++ '[' '!' /usr/bin/jq ']'
- ++++++ '[' '' == 'NOT REQUIRED' ']'
- +++++++ printf '%s\n\n' 2.27
- +++++++ head -n 1
- +++++++ sort -V
- ++++++ '[' '' '!=' '' ']'
- ++++++ '[' '' == UNKNOWN ']'
- +++++ allowed_commands_array=(command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_fastdl.sh command_mods_install.sh command_mods_remove.sh command_mods_update.sh command_monitor.sh command_postdetails.sh command_restart.sh command_start.sh command_stop.sh command_test_alert.sh command_ts3_server_pass.sh command_update.sh command_update_functions.sh command_validate.sh command_wipe.sh command_unreal2_maps.sh command_ut99maps.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_backup.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_console.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_details.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_unreal2_maps.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_fastdl.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_mods_install.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_mods_remove.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_mods_update.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_monitor.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_postdetails.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_restart.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_stop.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_test_alert.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_ts3_server_pass.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_update.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_update_functions.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_validate.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_wipe.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_unreal2_maps.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_ut99maps.sh == command_install.sh ']'
- +++++ allowed_commands_array=(command_debug.sh command_start.sh command_stop.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_stop.sh == command_install.sh ']'
- +++++ allowed_commands_array=(command_console.sh command_debug.sh command_monitor.sh command_start.sh command_stop.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_console.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_monitor.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_stop.sh == command_install.sh ']'
- +++++ allowed_commands_array=(command_debug.sh command_details.sh command_postdetails.sh command_monitor.sh command_start.sh command_stop.sh command_dev_query_raw.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_details.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_postdetails.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_monitor.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_stop.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_dev_query_raw.sh == command_install.sh ']'
- +++++ allowed_commands_array=(update_steamcmd.sh command_debug.sh command_start.sh command_validate.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' update_steamcmd.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_validate.sh == command_install.sh ']'
- +++++ allowed_commands_array=(command_details.sh command_monitor.sh command_start.sh command_stop.sh command_ts3_server_pass.sh command_update.sh command_details.sh command_validate.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_details.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_monitor.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_stop.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_ts3_server_pass.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_update.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_details.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_validate.sh == command_install.sh ']'
- +++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
- +++++ local allowed_commands_array
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_debug.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_start.sh == command_install.sh ']'
- +++++ for allowed_command in "${allowed_commands_array[@]}"
- +++++ '[' command_install.sh == command_install.sh ']'
- +++++ check_system_requirements.sh
- +++++ functionfile=check_system_requirements.sh
- +++++ fn_fetch_function
- +++++ github_file_url_dir=lgsm/functions
- +++++ github_file_url_name=check_system_requirements.sh
- +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_system_requirements.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh /home/xtoor/atlasserver/lgsm/functions check_system_requirements.sh chmodx run noforce nomd5
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=check_system_requirements.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh ']'
- +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- +++++ trap fn_fetch_trap INT
- +++++ '[' sh == bz2 ']'
- +++++ '[' sh == gz ']'
- +++++ '[' sh == zip ']'
- +++++ '[' sh == jar ']'
- +++++ '[' sh == xz ']'
- +++++ echo -en ' fetching check_system_requirements.sh...\c'
- ++++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
- +++++ curlcmd=
- +++++ local exitcode=0
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ '[' -f '' ']'
- +++++ trap - INT
- +++++ '[' chmodx == chmodx ']'
- +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
- +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh ']'
- +++++ fn_dl_md5
- +++++ '[' nomd5 '!=' 0 ']'
- +++++ '[' nomd5 '!=' nomd5 ']'
- +++++ '[' run == run ']'
- +++++ source /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
- ++++++ local commandname=CHECK
- ++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
- +++++++ basename /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
- ++++++ local function_selfname=check_system_requirements.sh
- ++++++ info_distro.sh
- ++++++ functionfile=info_distro.sh
- ++++++ fn_fetch_function
- ++++++ github_file_url_dir=lgsm/functions
- ++++++ github_file_url_name=info_distro.sh
- ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_distro.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh /home/xtoor/atlasserver/lgsm/functions info_distro.sh chmodx run noforce nomd5
- ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
- ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++++ local_filename=info_distro.sh
- ++++++ chmodx=chmodx
- ++++++ run=run
- ++++++ forcedl=noforce
- ++++++ md5=nomd5
- ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
- ++++++ '[' noforce == forcedl ']'
- ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
- ++++++ fn_dl_md5
- ++++++ '[' nomd5 '!=' 0 ']'
- ++++++ '[' nomd5 '!=' nomd5 ']'
- ++++++ '[' run == run ']'
- ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
- +++++++ local function_selfname=info_distro.sh
- ++++++++ uname -m
- +++++++ arch=x86_64
- ++++++++ uname -r
- +++++++ kernel=4.15.0-45-generic
- +++++++ distro_info_array=(os-release lsb_release hostnamectl debian_version redhat-release)
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' os-release == os-release ']'
- ++++++++ grep PRETTY_NAME /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ tr -d '="'
- ++++++++ sed s/PRETTY_NAME=//g
- +++++++ distroname='Ubuntu 18.04.1 LTS'
- ++++++++ grep VERSION_ID /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/VERSION_ID=//g
- +++++++ distroversion=18.04
- ++++++++ grep ID /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/ID=//g
- ++++++++ grep -v ID_
- ++++++++ grep -v _ID
- +++++++ distroid=ubuntu
- ++++++++ grep VERSION_CODENAME /etc/os-release
- ++++++++ sed 's/\"//g'
- ++++++++ sed s/VERSION_CODENAME=//g
- +++++++ distrocodename=bionic
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' lsb_release == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' lsb_release == lsb_release ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ '[' -z 18.04 ']'
- +++++++ '[' -z ubuntu ']'
- +++++++ '[' -z bionic ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' hostnamectl == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' hostnamectl == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' hostnamectl == hostnamectl ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' debian_version == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' debian_version == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' debian_version == hostnamectl ']'
- +++++++ '[' -f /etc/debian_version ']'
- +++++++ '[' debian_version == debian_version ']'
- +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
- +++++++ '[' -z 18.04 ']'
- +++++++ '[' -z ubuntu ']'
- +++++++ for distro_info in "${distro_info_array[@]}"
- +++++++ '[' -f /etc/os-release ']'
- +++++++ '[' redhat-release == os-release ']'
- ++++++++ command -v lsb_release
- +++++++ '[' -n /usr/bin/lsb_release ']'
- +++++++ '[' redhat-release == lsb_release ']'
- ++++++++ command -v hostnamectl
- +++++++ '[' -n /usr/bin/hostnamectl ']'
- +++++++ '[' redhat-release == hostnamectl ']'
- +++++++ '[' -f /etc/debian_version ']'
- +++++++ '[' redhat-release == debian_version ']'
- +++++++ '[' -f /etc/redhat-release ']'
- ++++++++ ldd --version
- ++++++++ sed -n '1s/.* //p'
- +++++++ glibcversion=2.27
- ++++++++ command -V tmux
- +++++++ '[' -z 'tmux is /usr/bin/tmux' ']'
- ++++++++ tmux -V
- ++++++++ sed 's/tmux //'
- ++++++++ sed -n '1 p'
- ++++++++ tr -cd '[:digit:]'
- +++++++ '[' 26 -lt 16 ']'
- ++++++++ tmux -V
- +++++++ tmuxv='tmux 2.6'
- +++++++ uptime='260471.19 513845.26'
- +++++++ uptime=260471
- +++++++ minutes=21
- +++++++ hours=0
- +++++++ days=3
- ++++++++ uptime
- ++++++++ awk -F 'load average: ' '{ print $2 }'
- +++++++ load='0.16, 0.07, 0.01'
- ++++++++ command -v numfmt
- +++++++ '[' -n /usr/bin/numfmt ']'
- ++++++++ grep MemTotal /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemtotalkb=4039372
- ++++++++ grep '^MemFree' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemfreekb=244680
- ++++++++ grep '^Buffers' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmembufferskb=525172
- ++++++++ grep '^Cached' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemcachedkb=2532400
- ++++++++ grep '^SReclaimable' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemreclaimablekb=277796
- +++++++ grep -q '^MemAvailable' /proc/meminfo
- ++++++++ grep '^MemAvailable' /proc/meminfo
- ++++++++ awk '{print $2}'
- +++++++ physmemactualfreekb=3288616
- +++++++ physmemtotalmb=3944
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4039372K
- +++++++ physmemtotal=3.9GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 3288616K
- +++++++ physmemfree=3.2GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 459324K
- +++++++ physmemused=449MB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 3288616K
- +++++++ physmemavailable=3.2GB
- ++++++++ numfmt --to=iec --from=iec --suffix=B 2810196K
- +++++++ physmemcached=2.7GB
- +++++++++ grep '^SwapTotal' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4038652K
- +++++++ swaptotal=3.9GB
- +++++++++ grep '^SwapFree' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 4038128K
- +++++++ swapfree=3.9GB
- +++++++++ grep '^SwapTotal' /proc/meminfo
- +++++++++ awk '{print $2}'
- +++++++++ grep '^SwapFree' /proc/meminfo
- +++++++++ awk '{print $2}'
- ++++++++ numfmt --to=iec --from=iec --suffix=B 524K
- +++++++ swapused=524KB
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ awk '{print $1}'
- ++++++++ grep -v Filesystem
- +++++++ filesystem=/dev/sda2
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ awk '{print $2}'
- ++++++++ grep -v Filesystem
- +++++++ totalspace=293G
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ awk '{print $3}'
- ++++++++ grep -v Filesystem
- +++++++ usedspace=68G
- ++++++++ df -hP /home/xtoor/atlasserver
- ++++++++ grep -v Filesystem
- ++++++++ awk '{print $4}'
- +++++++ availspace=211G
- ++++++++ du -sh /home/xtoor/atlasserver
- ++++++++ awk '{print $1}'
- +++++++ rootdirdu=320K
- +++++++ '[' -z 320K ']'
- ++++++++ du -sh /home/xtoor/atlasserver/serverfiles
- ++++++++ awk '{print $1}'
- +++++++ serverfilesdu=4.0K
- +++++++ '[' -z 4.0K ']'
- ++++++++ du -sh --exclude= /home/xtoor/atlasserver/serverfiles
- ++++++++ awk '{print $1}'
- +++++++ rootdirduexbackup=4.0K
- +++++++ '[' -z 4.0K ']'
- +++++++ '[' -d '' ']'
- +++++++ '[' -z 72.90.180.15 ']'
- ++++++++ command -v jq
- +++++++ '[' '!' /usr/bin/jq ']'
- ++++++ '[' atlas == ark ']'
- ++++++ '[' atlas == arma3 ']'
- ++++++ '[' atlas == rust ']'
- ++++++ '[' atlas == mc ']'
- ++++++ '[' atlas == pstbs ']'
- ++++++ '[' atlas == ns2 ']'
- ++++++ '[' atlas == ns2c ']'
- ++++++ '[' atlas == st ']'
- ++++++ '[' -n '' ']'
- +++++ whoami
- ++++ '[' xtoor = root ']'
- ++++ install_header.sh
- ++++ functionfile=install_header.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=install_header.sh
- ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_header.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh /home/xtoor/atlasserver/lgsm/functions install_header.sh chmodx run noforce nomd5
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_header.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh ']'
- ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++ trap fn_fetch_trap INT
- ++++ '[' sh == bz2 ']'
- ++++ '[' sh == gz ']'
- ++++ '[' sh == zip ']'
- ++++ '[' sh == jar ']'
- ++++ '[' sh == xz ']'
- ++++ echo -en ' fetching install_header.sh...\c'
- +++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/install_header.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
- ++++ curlcmd=
- ++++ local exitcode=0
- ++++ '[' 0 -ne 0 ']'
- ++++ fn_print_ok_eol_nl
- ++++ echo -e '\e[32mOK\e[0m'
- ++++ '[' -f '' ']'
- ++++ trap - INT
- ++++ '[' chmodx == chmodx ']'
- ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_header.sh
- ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/xtoor/atlasserver/lgsm/functions/install_header.sh
- +++++ local commandname=INSTALL
- +++++ local commandaction=Install
- +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh
- ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_header.sh
- +++++ local function_selfname=install_header.sh
- +++++ clear
- +++++ echo =================================
- +++++ echo 'LinuxGSM - '
- +++++ echo 'by Daniel Gibbs'
- +++++ echo 'Website: https://linuxgsm.com'
- +++++ echo 'Contributors: https://linuxgsm.com/contrib'
- +++++ echo 'Donate: https://linuxgsm.com/donate'
- +++++ echo =================================
- ++++ install_server_dir.sh
- ++++ functionfile=install_server_dir.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=install_server_dir.sh
- ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_server_dir.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh /home/xtoor/atlasserver/lgsm/functions install_server_dir.sh chmodx run noforce nomd5
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_server_dir.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh ']'
- ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++ trap fn_fetch_trap INT
- ++++ '[' sh == bz2 ']'
- ++++ '[' sh == gz ']'
- ++++ '[' sh == zip ']'
- ++++ '[' sh == jar ']'
- ++++ '[' sh == xz ']'
- ++++ echo -en ' fetching install_server_dir.sh...\c'
- +++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
- ++++ curlcmd=
- ++++ local exitcode=0
- ++++ '[' 0 -ne 0 ']'
- ++++ fn_print_ok_eol_nl
- ++++ echo -e '\e[32mOK\e[0m'
- ++++ '[' -f '' ']'
- ++++ trap - INT
- ++++ '[' chmodx == chmodx ']'
- ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
- ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
- +++++ local commandname=INSTALL
- +++++ local commandaction=Install
- +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
- ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
- +++++ local function_selfname=install_server_dir.sh
- +++++ echo ''
- +++++ echo 'Server Directory'
- +++++ echo =================================
- +++++ sleep 0.5
- +++++ '[' -d /home/xtoor/atlasserver/serverfiles ']'
- +++++ fn_print_warning_nl 'A server is already installed here.'
- +++++ echo -e '\e[33mWarning!\e[0m A server is already installed here.'
- +++++ pwd
- +++++ echo ''
- +++++ '[' -z '' ']'
- +++++ fn_prompt_yn 'Continue?' Y
- +++++ local 'prompt=Continue?'
- +++++ local initial=Y
- +++++ '[' Y == Y ']'
- +++++ prompt+=' [Y/n] '
- +++++ true
- +++++ read -e -i Y -p 'Continue? [Y/n] ' -r yn
- +++++ case "${yn}" in
- +++++ return 0
- +++++ '[' '!' -d /home/xtoor/atlasserver/serverfiles ']'
- ++++ install_logs.sh
- ++++ functionfile=install_logs.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=install_logs.sh
- ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_logs.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh /home/xtoor/atlasserver/lgsm/functions install_logs.sh chmodx run noforce nomd5
- ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
- ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- ++++ local_filename=install_logs.sh
- ++++ chmodx=chmodx
- ++++ run=run
- ++++ forcedl=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh ']'
- ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
- ++++ trap fn_fetch_trap INT
- ++++ '[' sh == bz2 ']'
- ++++ '[' sh == gz ']'
- ++++ '[' sh == zip ']'
- ++++ '[' sh == jar ']'
- ++++ '[' sh == xz ']'
- ++++ echo -en ' fetching install_logs.sh...\c'
- +++++ /usr/bin/curl -s --fail -L -o /home/xtoor/atlasserver/lgsm/functions/install_logs.sh https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
- ++++ curlcmd=
- ++++ local exitcode=0
- ++++ '[' 0 -ne 0 ']'
- ++++ fn_print_ok_eol_nl
- ++++ echo -e '\e[32mOK\e[0m'
- ++++ '[' -f '' ']'
- ++++ trap - INT
- ++++ '[' chmodx == chmodx ']'
- ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
- ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
- +++++ local commandname=INSTALL
- +++++ local commandaction=Install
- +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
- ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
- +++++ local function_selfname=install_logs.sh
- +++++ '[' '' '!=' 1 ']'
- +++++ echo ''
- +++++ echo 'Creating log directories'
- +++++ echo =================================
- +++++ sleep 0.5
- +++++ echo -en 'installing log dir: /home/xtoor/atlasserver/log...'
- +++++ mkdir -p /home/xtoor/atlasserver/log
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ echo -en 'installing LinuxGSM log dir: /home/xtoor/atlasserver/log/lgsm...'
- +++++ mkdir -p /home/xtoor/atlasserver/log/lgsm
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_print_ok_eol_nl
- +++++ echo -e '\e[32mOK\e[0m'
- +++++ echo -en 'creating LinuxGSM log: ...'
- +++++ touch ''
- +++++ '[' 1 -ne 0 ']'
- +++++ fn_print_fail_eol_nl
- +++++ echo -e '\e[31mFAIL\e[0m'
- +++++ core_exit.sh
- +++++ functionfile=core_exit.sh
- +++++ fn_fetch_function
- +++++ github_file_url_dir=lgsm/functions
- +++++ github_file_url_name=core_exit.sh
- +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=core_exit.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ fn_fetch_file https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh /home/xtoor/atlasserver/lgsm/functions core_exit.sh chmodx run noforce nomd5
- +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
- +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
- +++++ local_filename=core_exit.sh
- +++++ chmodx=chmodx
- +++++ run=run
- +++++ forcedl=noforce
- +++++ md5=nomd5
- +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_exit.sh ']'
- +++++ '[' noforce == forcedl ']'
- +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_exit.sh ']'
- +++++ fn_dl_md5
- +++++ '[' nomd5 '!=' 0 ']'
- +++++ '[' nomd5 '!=' nomd5 ']'
- +++++ '[' run == run ']'
- +++++ source /home/xtoor/atlasserver/lgsm/functions/core_exit.sh
- +++++++ whoami
- ++++++ '[' xtoor == root ']'
- ++++++ '[' -n '' ']'
- ++++++ '[' -n 0 ']'
- ++++++ '[' 0 '!=' 0 ']'
- ++++++ exitcode=0
- ++++++ fn_script_log_pass 'install_logs.sh exiting with code: 0'
- ++++++ '[' -d /home/xtoor/atlasserver/log/lgsm ']'
- ++++++ '[' -n INSTALL ']'
- +++++++ date '+%b %d %H:%M:%S.%3N'
- ++++++ echo -e 'Feb 04 21:25:17.475 atlasserver: INSTALL: PASS: install_logs.sh exiting with code: 0'
- ++++++ exitcode=0
- ++++++ fn_exit_dev_debug
- ++++++ '[' -f /home/xtoor/atlasserver/.dev-debug ']'
- ++++++ echo ''
- ++++++ echo 'install_logs.sh exiting with code: 0'
- ++++++ '[' -f /home/xtoor/atlasserver/dev-debug.log ']'
- ++++++ grep functionfile= /home/xtoor/atlasserver/dev-debug.log
- ++++++ sed s/functionfile=//g
- ++++++ trap - INT
- ++++++ exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement