Advertisement
Guest User

dev-log

a guest
Feb 4th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 94.06 KB | None | 0 0
  1. + version=190106
  2. + shortname=atlas
  3. + gameservername=atlasserver
  4. +++ readlink -f ./atlasserver
  5. ++ dirname /home/xtoor/atlasserver/atlasserver
  6. + rootdir=/home/xtoor/atlasserver
  7. +++ readlink -f ./atlasserver
  8. ++ basename /home/xtoor/atlasserver/atlasserver
  9. + selfname=atlasserver
  10. + servicename=atlasserver
  11. + lockselfname=.atlasserver.lock
  12. + lgsmdir=/home/xtoor/atlasserver/lgsm
  13. + logdir=/home/xtoor/atlasserver/log
  14. + lgsmlogdir=/home/xtoor/atlasserver/log/lgsm
  15. + steamcmddir=/home/xtoor/atlasserver/steamcmd
  16. + serverfiles=/home/xtoor/atlasserver/serverfiles
  17. + functionsdir=/home/xtoor/atlasserver/lgsm/functions
  18. + libdir=/home/xtoor/atlasserver/lgsm/lib
  19. + tmpdir=/home/xtoor/atlasserver/lgsm/tmp
  20. + configdir=/home/xtoor/atlasserver/lgsm/config-lgsm
  21. + configdirserver=/home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver
  22. + configdirdefault=/home/xtoor/atlasserver/lgsm/config-default
  23. + userinput=install
  24. + githubuser=xtoor
  25. + githubrepo=LinuxGSM
  26. + githubbranch=master
  27. ++ whoami
  28. + '[' xtoor == root ']'
  29. + '[' atlas == core ']'
  30. + core_functions.sh
  31. + functionfile=core_functions.sh
  32. + fn_bootstrap_fetch_file_github lgsm/functions core_functions.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
  33. + github_file_url_dir=lgsm/functions
  34. + github_file_url_name=core_functions.sh
  35. + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
  36. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
  37. + local_filedir=/home/xtoor/atlasserver/lgsm/functions
  38. + local_filename=core_functions.sh
  39. + chmodx=chmodx
  40. + run=run
  41. + forcedl=noforcedl
  42. + md5=nomd5
  43. + 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
  44. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_functions.sh
  45. + local_filedir=/home/xtoor/atlasserver/lgsm/functions
  46. + local_filename=core_functions.sh
  47. + chmodx=chmodx
  48. + run=run
  49. + forcedl=noforcedl
  50. + md5=nomd5
  51. + '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_functions.sh ']'
  52. + '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  53. ++ command -v curl
  54. + curlpath=/usr/bin/curl
  55. ++ basename /usr/bin/curl
  56. + '[' curl == curl ']'
  57. + echo -en '    fetching core_functions.sh...\c'
  58. ++ /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
  59. + curlcmd=
  60. + local exitcode=0
  61. + '[' 0 -ne 0 ']'
  62. + echo -e OK
  63. + '[' chmodx == chmodx ']'
  64. + chmod +x /home/xtoor/atlasserver/lgsm/functions/core_functions.sh
  65. + '[' -f /home/xtoor/atlasserver/lgsm/functions/core_functions.sh ']'
  66. + '[' run == run ']'
  67. + source /home/xtoor/atlasserver/lgsm/functions/core_functions.sh
  68. ++ core_legacy.sh
  69. ++ functionfile=core_legacy.sh
  70. +++ type fn_fetch_core_dl
  71. ++ '[' '' ']'
  72. ++ fn_bootstrap_fetch_file_github lgsm/functions core_legacy.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
  73. ++ github_file_url_dir=lgsm/functions
  74. ++ github_file_url_name=core_legacy.sh
  75. ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
  76. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
  77. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  78. ++ local_filename=core_legacy.sh
  79. ++ chmodx=chmodx
  80. ++ run=run
  81. ++ forcedl=noforcedl
  82. ++ md5=nomd5
  83. ++ 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
  84. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_legacy.sh
  85. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  86. ++ local_filename=core_legacy.sh
  87. ++ chmodx=chmodx
  88. ++ run=run
  89. ++ forcedl=noforcedl
  90. ++ md5=nomd5
  91. ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh ']'
  92. ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  93. +++ command -v curl
  94. ++ curlpath=/usr/bin/curl
  95. +++ basename /usr/bin/curl
  96. ++ '[' curl == curl ']'
  97. ++ echo -en '    fetching core_legacy.sh...\c'
  98. +++ /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
  99. ++ curlcmd=
  100. ++ local exitcode=0
  101. ++ '[' 0 -ne 0 ']'
  102. ++ echo -e OK
  103. ++ '[' chmodx == chmodx ']'
  104. ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh
  105. ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh ']'
  106. ++ '[' run == run ']'
  107. ++ source /home/xtoor/atlasserver/lgsm/functions/core_legacy.sh
  108. +++ '[' -z /home/xtoor/atlasserver/serverfiles ']'
  109. +++ '[' -z /home/xtoor/atlasserver/log ']'
  110. +++ '[' -z /home/xtoor/atlasserver/log/lgsm ']'
  111. +++ '[' -z '' ']'
  112. +++ lgsmlog=
  113. +++ '[' -z '' ']'
  114. +++ lgsmlogdate=
  115. +++ '[' -z /home/xtoor/atlasserver/steamcmd ']'
  116. +++ '[' -z /home/xtoor/atlasserver/lgsm ']'
  117. +++ '[' -z /home/xtoor/atlasserver/lgsm/tmp ']'
  118. +++ '[' -z '' ']'
  119. +++ alertlog=
  120. +++ '[' -z '' ']'
  121. +++ '[' '' ']'
  122. +++ '[' '' ']'
  123. +++ '[' -z '' ']'
  124. +++ '[' '' ']'
  125. +++ '[' '' ']'
  126. +++ '[' -z '' ']'
  127. +++ '[' '' ']'
  128. ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/tmp ']'
  129. ++ core_messages.sh
  130. ++ functionfile=core_messages.sh
  131. +++ type fn_fetch_core_dl
  132. ++ '[' '' ']'
  133. ++ fn_bootstrap_fetch_file_github lgsm/functions core_messages.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
  134. ++ github_file_url_dir=lgsm/functions
  135. ++ github_file_url_name=core_messages.sh
  136. ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
  137. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
  138. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  139. ++ local_filename=core_messages.sh
  140. ++ chmodx=chmodx
  141. ++ run=run
  142. ++ forcedl=noforcedl
  143. ++ md5=nomd5
  144. ++ 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
  145. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_messages.sh
  146. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  147. ++ local_filename=core_messages.sh
  148. ++ chmodx=chmodx
  149. ++ run=run
  150. ++ forcedl=noforcedl
  151. ++ md5=nomd5
  152. ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_messages.sh ']'
  153. ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  154. +++ command -v curl
  155. ++ curlpath=/usr/bin/curl
  156. +++ basename /usr/bin/curl
  157. ++ '[' curl == curl ']'
  158. ++ echo -en '    fetching core_messages.sh...\c'
  159. +++ /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
  160. ++ curlcmd=
  161. ++ local exitcode=0
  162. ++ '[' 0 -ne 0 ']'
  163. ++ echo -e OK
  164. ++ '[' chmodx == chmodx ']'
  165. ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_messages.sh
  166. ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_messages.sh ']'
  167. ++ '[' run == run ']'
  168. ++ source /home/xtoor/atlasserver/lgsm/functions/core_messages.sh
  169. ++ core_dl.sh
  170. ++ functionfile=core_dl.sh
  171. +++ type fn_fetch_core_dl
  172. ++ '[' '' ']'
  173. ++ fn_bootstrap_fetch_file_github lgsm/functions core_dl.sh /home/xtoor/atlasserver/lgsm/functions chmodx run noforcedl nomd5
  174. ++ github_file_url_dir=lgsm/functions
  175. ++ github_file_url_name=core_dl.sh
  176. ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
  177. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
  178. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  179. ++ local_filename=core_dl.sh
  180. ++ chmodx=chmodx
  181. ++ run=run
  182. ++ forcedl=noforcedl
  183. ++ md5=nomd5
  184. ++ 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
  185. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_dl.sh
  186. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  187. ++ local_filename=core_dl.sh
  188. ++ chmodx=chmodx
  189. ++ run=run
  190. ++ forcedl=noforcedl
  191. ++ md5=nomd5
  192. ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh ']'
  193. ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  194. +++ command -v curl
  195. ++ curlpath=/usr/bin/curl
  196. +++ basename /usr/bin/curl
  197. ++ '[' curl == curl ']'
  198. ++ echo -en '    fetching core_dl.sh...\c'
  199. +++ /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
  200. ++ curlcmd=
  201. ++ local exitcode=0
  202. ++ '[' 0 -ne 0 ']'
  203. ++ echo -e OK
  204. ++ '[' chmodx == chmodx ']'
  205. ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
  206. ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh ']'
  207. ++ '[' run == run ']'
  208. ++ source /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
  209. +++ local commandname=DOWNLOAD
  210. +++ local commandaction=Download
  211. +++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
  212. ++++ basename /home/xtoor/atlasserver/lgsm/functions/core_dl.sh
  213. +++ local function_selfname=core_dl.sh
  214. ++++ command -v curl
  215. +++ curlpath=/usr/bin/curl
  216. ++++ basename /usr/bin/curl
  217. +++ '[' curl '!=' curl ']'
  218. ++ core_trap.sh
  219. ++ functionfile=core_trap.sh
  220. ++ fn_fetch_function
  221. ++ github_file_url_dir=lgsm/functions
  222. ++ github_file_url_name=core_trap.sh
  223. ++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
  224. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
  225. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  226. ++ local_filename=core_trap.sh
  227. ++ chmodx=chmodx
  228. ++ run=run
  229. ++ forcedl=noforce
  230. ++ md5=nomd5
  231. ++ 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
  232. ++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_trap.sh
  233. ++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  234. ++ local_filename=core_trap.sh
  235. ++ chmodx=chmodx
  236. ++ run=run
  237. ++ forcedl=noforce
  238. ++ md5=nomd5
  239. ++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_trap.sh ']'
  240. ++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  241. ++ trap fn_fetch_trap INT
  242. ++ '[' sh == bz2 ']'
  243. ++ '[' sh == gz ']'
  244. ++ '[' sh == zip ']'
  245. ++ '[' sh == jar ']'
  246. ++ '[' sh == xz ']'
  247. ++ echo -en '    fetching core_trap.sh...\c'
  248. +++ /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
  249. ++ curlcmd=
  250. ++ local exitcode=0
  251. ++ '[' 0 -ne 0 ']'
  252. ++ fn_print_ok_eol_nl
  253. ++ echo -e OK
  254. ++ '[' -f '' ']'
  255. ++ trap - INT
  256. ++ '[' chmodx == chmodx ']'
  257. ++ chmod +x /home/xtoor/atlasserver/lgsm/functions/core_trap.sh
  258. ++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_trap.sh ']'
  259. ++ fn_dl_md5
  260. ++ '[' nomd5 '!=' 0 ']'
  261. ++ '[' nomd5 '!=' nomd5 ']'
  262. ++ '[' run == run ']'
  263. ++ source /home/xtoor/atlasserver/lgsm/functions/core_trap.sh
  264. +++ trap fn_exit_trap INT
  265. + '[' atlas '!=' core-dep ']'
  266. + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
  267. + mkdir -p /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
  268. + 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
  269. + github_file_url_dir=lgsm/config-default/config-lgsm/atlasserver
  270. + github_file_url_name=_default.cfg
  271. + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
  272. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
  273. + local_filedir=/home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
  274. + local_filename=_default.cfg
  275. + chmodx=nochmodx
  276. + run=norun
  277. + forcedl=noforce
  278. + md5=nomd5
  279. + 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
  280. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/config-default/config-lgsm/atlasserver/_default.cfg
  281. + local_filedir=/home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver
  282. + local_filename=_default.cfg
  283. + chmodx=nochmodx
  284. + run=norun
  285. + forcedl=noforce
  286. + md5=nomd5
  287. + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
  288. + '[' '!' -d /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver ']'
  289. + trap fn_fetch_trap INT
  290. + '[' cfg == bz2 ']'
  291. + '[' cfg == gz ']'
  292. + '[' cfg == zip ']'
  293. + '[' cfg == jar ']'
  294. + '[' cfg == xz ']'
  295. + echo -en '    fetching _default.cfg...\c'
  296. ++ /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
  297. + curlcmd=
  298. + local exitcode=0
  299. + '[' 0 -ne 0 ']'
  300. + fn_print_ok_eol_nl
  301. + echo -e OK
  302. + '[' -f '' ']'
  303. + trap - INT
  304. + '[' nochmodx == chmodx ']'
  305. + '[' -f /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg ']'
  306. + fn_dl_md5
  307. + '[' nomd5 '!=' 0 ']'
  308. + '[' nomd5 '!=' nomd5 ']'
  309. + '[' norun == run ']'
  310. + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg ']'
  311. ++ diff -q /home/xtoor/atlasserver/lgsm/config-default/config-lgsm/atlasserver/_default.cfg /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg
  312. + function_file_diff=
  313. + '[' '' '!=' '' ']'
  314. + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/_default.cfg
  315. ++ ip='multihomeIP here'
  316. ++ SeamlessIP='ExternalIP here'
  317. ++ defaultmap=Ocean
  318. ++ maxplayers=20
  319. ++ rps=25
  320. ++ extraparms=' -log -server -NoBattlEye -allcores -USEALLAVAILABLECORES -servergamelog'
  321. ++ ServerAdminPassword=pass
  322. + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/common.cfg ']'
  323. + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/common.cfg
  324. ++ ip=0.0.0.0
  325. ++ SeamlessIP=72.90.180.15
  326. ++ defaultmap=Ocean
  327. ++ maxplayers=20
  328. ++ rps=25
  329. ++ extraparms=' -log -server -NoBattlEye -allcores -USEALLAVAILABLECORES -servergamelog'
  330. ++ ServerAdminPassword=pass
  331. + '[' '!' -f /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/atlasserver.cfg ']'
  332. + source /home/xtoor/atlasserver/lgsm/config-lgsm/atlasserver/atlasserver.cfg
  333. ++ port=5755
  334. ++ queryport=57555
  335. ++ rconport=32306
  336. ++ ServerX=0
  337. ++ ServerY=0
  338. + '[' '!' -f /home/xtoor/atlasserver/lgsm/tmp/linuxgsm.sh ']'
  339. + fn_ansi_loader
  340. + '[' '' '!=' off ']'
  341. + default='\e[0m'
  342. + red='\e[31m'
  343. + lightred='\e[91m'
  344. + green='\e[32m'
  345. + lightgreen='\e[92m'
  346. + yellow='\e[33m'
  347. + lightyellow='\e[93m'
  348. + blue='\e[34m'
  349. + lightblue='\e[94m'
  350. + magenta='\e[35m'
  351. + lightmagenta='\e[95m'
  352. + cyan='\e[36m'
  353. + lightcyan='\e[96m'
  354. + creeol='\r\033[K'
  355. + '[' '' '!=' 1 ']'
  356. + getopt=install
  357. + core_getopt.sh
  358. + functionfile=core_getopt.sh
  359. + fn_fetch_function
  360. + github_file_url_dir=lgsm/functions
  361. + github_file_url_name=core_getopt.sh
  362. + githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
  363. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
  364. + local_filedir=/home/xtoor/atlasserver/lgsm/functions
  365. + local_filename=core_getopt.sh
  366. + chmodx=chmodx
  367. + run=run
  368. + forcedl=noforce
  369. + md5=nomd5
  370. + 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
  371. + remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_getopt.sh
  372. + local_filedir=/home/xtoor/atlasserver/lgsm/functions
  373. + local_filename=core_getopt.sh
  374. + chmodx=chmodx
  375. + run=run
  376. + forcedl=noforce
  377. + md5=nomd5
  378. + '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh ']'
  379. + '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  380. + trap fn_fetch_trap INT
  381. + '[' sh == bz2 ']'
  382. + '[' sh == gz ']'
  383. + '[' sh == zip ']'
  384. + '[' sh == jar ']'
  385. + '[' sh == xz ']'
  386. + echo -en '    fetching core_getopt.sh...\c'
  387. ++ /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
  388. + curlcmd=
  389. + local exitcode=0
  390. + '[' 0 -ne 0 ']'
  391. + fn_print_ok_eol_nl
  392. + echo -e '\e[32mOK\e[0m'
  393. + '[' -f '' ']'
  394. + trap - INT
  395. + '[' chmodx == chmodx ']'
  396. + chmod +x /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
  397. + '[' -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh ']'
  398. + fn_dl_md5
  399. + '[' nomd5 '!=' 0 ']'
  400. + '[' nomd5 '!=' nomd5 ']'
  401. + '[' run == run ']'
  402. + source /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
  403. ++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
  404. +++ basename /home/xtoor/atlasserver/lgsm/functions/core_getopt.sh
  405. ++ local function_selfname=core_getopt.sh
  406. ++ cmd_install=("i;install" "command_install.sh" "Install the server.")
  407. ++ cmd_auto_install=("ai;auto-install" "fn_autoinstall" "Install the server without prompts.")
  408. ++ cmd_start=("st;start" "command_start.sh" "Start the server.")
  409. ++ cmd_stop=("sp;stop" "command_stop.sh" "Stop the server.")
  410. ++ cmd_restart=("r;restart" "command_restart.sh" "Restart the server.")
  411. ++ cmd_details=("dt;details" "command_details.sh" "Display server information.")
  412. ++ cmd_postdetails=("pd;postdetails" "command_postdetails.sh" "Post details to hastebin (removing passwords).")
  413. ++ cmd_backup=("b;backup" "command_backup.sh" "Create backup archives of the server.")
  414. ++ cmd_update_linuxgsm=("ul;update-lgsm;uf;update-functions" "command_update_linuxgsm.sh" "Check and apply any LinuxGSM updates.")
  415. ++ cmd_test_alert=("ta;test-alert" "command_test_alert.sh" "Send a test alert.")
  416. ++ cmd_monitor=("m;monitor" "command_monitor.sh" "Check server status and restart if crashed.")
  417. ++ cmd_donate=("do;donate" "command_donate.sh" "Donation options.")
  418. ++ cmd_console=("c;console" "command_console.sh" "Access server console.")
  419. ++ cmd_debug=("d;debug" "command_debug.sh" "Start server directly in your terminal.")
  420. ++ cmd_update=("u;update" "command_update.sh" "Check and apply any server updates.")
  421. ++ cmd_force_update=("fu;force-update;update-restart;ur" "forceupdate=1; command_update.sh" "Apply server updates bypassing check.")
  422. ++ cmd_validate=("v;validate" "command_validate.sh" "Validate server files with SteamCMD.")
  423. ++ cmd_mods_install=("mi;mods-install" "command_mods_install.sh" "View and install available mods/addons.")
  424. ++ cmd_mods_remove=("mr;mods-remove" "command_mods_remove.sh" "View and remove an installed mod/addon.")
  425. ++ cmd_mods_update=("mu;mods-update" "command_mods_update.sh" "Update installed mods/addons.")
  426. ++ cmd_change_password=("pw;change-password" "command_ts3_server_pass.sh" "Change TS3 serveradmin password.")
  427. ++ cmd_install_default_resources=("ir;install-default-resources" "command_install_resources_mta.sh" "Install the MTA default resources.")
  428. ++ cmd_wipe=("wi;wipe" "command_wipe.sh" "Wipe your main game server data.")
  429. ++ cmd_wipeall=("wa;wipeall" "wipeall=1; command_wipe.sh" "Wipe your game server data and blueprints.")
  430. ++ cmd_map_compressor_u99=("mc;map-compressor" "compress_ut99_maps.sh" "Compresses all ${gamename} server maps.")
  431. ++ cmd_map_compressor_u2=("mc;map-compressor" "compress_unreal2_maps.sh" "Compresses all ${gamename} server maps.")
  432. ++ cmd_install_cdkey=("cd;server-cd-key" "install_ut2k4_key.sh" "Add your server cd key.")
  433. ++ cmd_install_dst_token=("ct;cluster-token" "install_dst_token.sh" "Configure cluster token.")
  434. ++ cmd_install_squad_license=("li;license" "install_squad_license.sh" "Add your Squad server license.")
  435. ++ cmd_fastdl=("fd;fastdl" "command_fastdl.sh" "Build a FastDL directory.")
  436. ++ cmd_dev_debug=("dev;developer" "command_dev_debug.sh" "Enable developer Mode.")
  437. ++ cmd_dev_detect_deps=("dd;detect-deps" "command_dev_detect_deps.sh" "Detect required dependencies.")
  438. ++ cmd_dev_detect_glibc=("dg;detect-glibc" "command_dev_detect_glibc.sh" "Detect required glibc.")
  439. ++ cmd_dev_detect_ldd=("dl;detect-ldd" "command_dev_detect_ldd.sh" "Detect required dynamic dependencies.")
  440. ++ cmd_dev_query_raw=("qr;query-raw" "command_dev_query_raw.sh" "The raw output of gamedig and gsquery.")
  441. ++ cmd_dev_clear_functions=("cf;clear-functions" "command_dev_clear_functions.sh" "Delete the contents of the functions dir.")
  442. ++ currentopt=("${cmd_start[@]}" "${cmd_stop[@]}" "${cmd_restart[@]}" "${cmd_monitor[@]}" "${cmd_test_alert[@]}" "${cmd_details[@]}" "${cmd_postdetails[@]}")
  443. ++ currentopt+=("${cmd_update_linuxgsm[@]}")
  444. ++ '[' '' '!=' quake ']'
  445. ++ '[' '' '!=' idtech2 ']'
  446. ++ '[' '' '!=' idtech3 ']'
  447. ++ '[' '' '!=' iw2.0 ']'
  448. ++ '[' '' '!=' iw3.0 ']'
  449. ++ '[' atlas '!=' bf1942 ']'
  450. ++ '[' atlas '!=' samp ']'
  451. ++ currentopt+=("${cmd_update[@]}")
  452. ++ '[' -n '' ']'
  453. ++ '[' atlas == mta ']'
  454. ++ '[' -n '' ']'
  455. ++ currentopt+=("${cmd_backup[@]}")
  456. ++ '[' atlas '!=' ts3 ']'
  457. ++ currentopt+=("${cmd_console[@]}" "${cmd_debug[@]}")
  458. ++ '[' '' == source ']'
  459. ++ '[' atlas '!=' ts3 ']'
  460. ++ currentopt+=("${cmd_change_password[@]}")
  461. ++ '[' atlas == rust ']'
  462. ++ '[' '' == unreal2 ']'
  463. ++ '[' '' == unreal ']'
  464. ++ '[' atlas == dst ']'
  465. ++ '[' atlas == mta ']'
  466. ++ '[' atlas == squad ']'
  467. ++ '[' '' == source ']'
  468. ++ '[' atlas == rust ']'
  469. ++ '[' atlas == hq ']'
  470. ++ '[' atlas == sdtd ']'
  471. ++ currentopt+=("${cmd_install[@]}" "${cmd_auto_install[@]}")
  472. ++ currentopt+=("${cmd_dev_debug[@]}")
  473. ++ '[' -f .dev-debug ']'
  474. ++ currentopt+=("${cmd_dev_detect_deps[@]}" "${cmd_dev_detect_glibc[@]}" "${cmd_dev_detect_ldd[@]}" "${cmd_dev_query_raw[@]}" "${cmd_dev_clear_functions[@]}")
  475. ++ currentopt+=("${cmd_donate[@]}")
  476. ++ optcommands=()
  477. ++ index=0
  478. ++ (( index=0 ))
  479. ++ (( index < 66 ))
  480. +++ echo 'st;start'
  481. +++ awk -F ';' '{ print NF }'
  482. ++ cmdamount=2
  483. ++ (( cmdindex=1 ))
  484. ++ (( cmdindex <= 2 ))
  485. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  486. +++ echo 'st;start'
  487. +++ awk -F ';' -v x=1 '{ print $x }'
  488. ++ (( cmdindex++ ))
  489. ++ (( cmdindex <= 2 ))
  490. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  491. +++ echo 'st;start'
  492. +++ awk -F ';' -v x=2 '{ print $x }'
  493. ++ (( cmdindex++ ))
  494. ++ (( cmdindex <= 2 ))
  495. ++ (( index+=3 ))
  496. ++ (( index < 66 ))
  497. +++ echo 'sp;stop'
  498. +++ awk -F ';' '{ print NF }'
  499. ++ cmdamount=2
  500. ++ (( cmdindex=1 ))
  501. ++ (( cmdindex <= 2 ))
  502. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  503. +++ echo 'sp;stop'
  504. +++ awk -F ';' -v x=1 '{ print $x }'
  505. ++ (( cmdindex++ ))
  506. ++ (( cmdindex <= 2 ))
  507. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  508. +++ echo 'sp;stop'
  509. +++ awk -F ';' -v x=2 '{ print $x }'
  510. ++ (( cmdindex++ ))
  511. ++ (( cmdindex <= 2 ))
  512. ++ (( index+=3 ))
  513. ++ (( index < 66 ))
  514. +++ echo 'r;restart'
  515. +++ awk -F ';' '{ print NF }'
  516. ++ cmdamount=2
  517. ++ (( cmdindex=1 ))
  518. ++ (( cmdindex <= 2 ))
  519. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  520. +++ echo 'r;restart'
  521. +++ awk -F ';' -v x=1 '{ print $x }'
  522. ++ (( cmdindex++ ))
  523. ++ (( cmdindex <= 2 ))
  524. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  525. +++ echo 'r;restart'
  526. +++ awk -F ';' -v x=2 '{ print $x }'
  527. ++ (( cmdindex++ ))
  528. ++ (( cmdindex <= 2 ))
  529. ++ (( index+=3 ))
  530. ++ (( index < 66 ))
  531. +++ echo 'm;monitor'
  532. +++ awk -F ';' '{ print NF }'
  533. ++ cmdamount=2
  534. ++ (( cmdindex=1 ))
  535. ++ (( cmdindex <= 2 ))
  536. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  537. +++ echo 'm;monitor'
  538. +++ awk -F ';' -v x=1 '{ print $x }'
  539. ++ (( cmdindex++ ))
  540. ++ (( cmdindex <= 2 ))
  541. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  542. +++ echo 'm;monitor'
  543. +++ awk -F ';' -v x=2 '{ print $x }'
  544. ++ (( cmdindex++ ))
  545. ++ (( cmdindex <= 2 ))
  546. ++ (( index+=3 ))
  547. ++ (( index < 66 ))
  548. +++ echo 'ta;test-alert'
  549. +++ awk -F ';' '{ print NF }'
  550. ++ cmdamount=2
  551. ++ (( cmdindex=1 ))
  552. ++ (( cmdindex <= 2 ))
  553. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  554. +++ echo 'ta;test-alert'
  555. +++ awk -F ';' -v x=1 '{ print $x }'
  556. ++ (( cmdindex++ ))
  557. ++ (( cmdindex <= 2 ))
  558. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  559. +++ echo 'ta;test-alert'
  560. +++ awk -F ';' -v x=2 '{ print $x }'
  561. ++ (( cmdindex++ ))
  562. ++ (( cmdindex <= 2 ))
  563. ++ (( index+=3 ))
  564. ++ (( index < 66 ))
  565. +++ echo 'dt;details'
  566. +++ awk -F ';' '{ print NF }'
  567. ++ cmdamount=2
  568. ++ (( cmdindex=1 ))
  569. ++ (( cmdindex <= 2 ))
  570. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  571. +++ echo 'dt;details'
  572. +++ awk -F ';' -v x=1 '{ print $x }'
  573. ++ (( cmdindex++ ))
  574. ++ (( cmdindex <= 2 ))
  575. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  576. +++ echo 'dt;details'
  577. +++ awk -F ';' -v x=2 '{ print $x }'
  578. ++ (( cmdindex++ ))
  579. ++ (( cmdindex <= 2 ))
  580. ++ (( index+=3 ))
  581. ++ (( index < 66 ))
  582. +++ echo 'pd;postdetails'
  583. +++ awk -F ';' '{ print NF }'
  584. ++ cmdamount=2
  585. ++ (( cmdindex=1 ))
  586. ++ (( cmdindex <= 2 ))
  587. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  588. +++ echo 'pd;postdetails'
  589. +++ awk -F ';' -v x=1 '{ print $x }'
  590. ++ (( cmdindex++ ))
  591. ++ (( cmdindex <= 2 ))
  592. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  593. +++ echo 'pd;postdetails'
  594. +++ awk -F ';' -v x=2 '{ print $x }'
  595. ++ (( cmdindex++ ))
  596. ++ (( cmdindex <= 2 ))
  597. ++ (( index+=3 ))
  598. ++ (( index < 66 ))
  599. +++ echo 'ul;update-lgsm;uf;update-functions'
  600. +++ awk -F ';' '{ print NF }'
  601. ++ cmdamount=4
  602. ++ (( cmdindex=1 ))
  603. ++ (( cmdindex <= 4 ))
  604. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  605. +++ echo 'ul;update-lgsm;uf;update-functions'
  606. +++ awk -F ';' -v x=1 '{ print $x }'
  607. ++ (( cmdindex++ ))
  608. ++ (( cmdindex <= 4 ))
  609. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  610. +++ echo 'ul;update-lgsm;uf;update-functions'
  611. +++ awk -F ';' -v x=2 '{ print $x }'
  612. ++ (( cmdindex++ ))
  613. ++ (( cmdindex <= 4 ))
  614. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  615. +++ echo 'ul;update-lgsm;uf;update-functions'
  616. +++ awk -F ';' -v x=3 '{ print $x }'
  617. ++ (( cmdindex++ ))
  618. ++ (( cmdindex <= 4 ))
  619. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  620. +++ echo 'ul;update-lgsm;uf;update-functions'
  621. +++ awk -F ';' -v x=4 '{ print $x }'
  622. ++ (( cmdindex++ ))
  623. ++ (( cmdindex <= 4 ))
  624. ++ (( index+=3 ))
  625. ++ (( index < 66 ))
  626. +++ echo 'u;update'
  627. +++ awk -F ';' '{ print NF }'
  628. ++ cmdamount=2
  629. ++ (( cmdindex=1 ))
  630. ++ (( cmdindex <= 2 ))
  631. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  632. +++ echo 'u;update'
  633. +++ awk -F ';' -v x=1 '{ print $x }'
  634. ++ (( cmdindex++ ))
  635. ++ (( cmdindex <= 2 ))
  636. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  637. +++ echo 'u;update'
  638. +++ awk -F ';' -v x=2 '{ print $x }'
  639. ++ (( cmdindex++ ))
  640. ++ (( cmdindex <= 2 ))
  641. ++ (( index+=3 ))
  642. ++ (( index < 66 ))
  643. +++ echo 'b;backup'
  644. +++ awk -F ';' '{ print NF }'
  645. ++ cmdamount=2
  646. ++ (( cmdindex=1 ))
  647. ++ (( cmdindex <= 2 ))
  648. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  649. +++ echo 'b;backup'
  650. +++ awk -F ';' -v x=1 '{ print $x }'
  651. ++ (( cmdindex++ ))
  652. ++ (( cmdindex <= 2 ))
  653. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  654. +++ echo 'b;backup'
  655. +++ awk -F ';' -v x=2 '{ print $x }'
  656. ++ (( cmdindex++ ))
  657. ++ (( cmdindex <= 2 ))
  658. ++ (( index+=3 ))
  659. ++ (( index < 66 ))
  660. +++ echo 'c;console'
  661. +++ awk -F ';' '{ print NF }'
  662. ++ cmdamount=2
  663. ++ (( cmdindex=1 ))
  664. ++ (( cmdindex <= 2 ))
  665. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  666. +++ echo 'c;console'
  667. +++ awk -F ';' -v x=1 '{ print $x }'
  668. ++ (( cmdindex++ ))
  669. ++ (( cmdindex <= 2 ))
  670. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  671. +++ echo 'c;console'
  672. +++ awk -F ';' -v x=2 '{ print $x }'
  673. ++ (( cmdindex++ ))
  674. ++ (( cmdindex <= 2 ))
  675. ++ (( index+=3 ))
  676. ++ (( index < 66 ))
  677. +++ echo 'd;debug'
  678. +++ awk -F ';' '{ print NF }'
  679. ++ cmdamount=2
  680. ++ (( cmdindex=1 ))
  681. ++ (( cmdindex <= 2 ))
  682. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  683. +++ echo 'd;debug'
  684. +++ awk -F ';' -v x=1 '{ print $x }'
  685. ++ (( cmdindex++ ))
  686. ++ (( cmdindex <= 2 ))
  687. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  688. +++ echo 'd;debug'
  689. +++ awk -F ';' -v x=2 '{ print $x }'
  690. ++ (( cmdindex++ ))
  691. ++ (( cmdindex <= 2 ))
  692. ++ (( index+=3 ))
  693. ++ (( index < 66 ))
  694. +++ echo 'pw;change-password'
  695. +++ awk -F ';' '{ print NF }'
  696. ++ cmdamount=2
  697. ++ (( cmdindex=1 ))
  698. ++ (( cmdindex <= 2 ))
  699. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  700. +++ echo 'pw;change-password'
  701. +++ awk -F ';' -v x=1 '{ print $x }'
  702. ++ (( cmdindex++ ))
  703. ++ (( cmdindex <= 2 ))
  704. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  705. +++ echo 'pw;change-password'
  706. +++ awk -F ';' -v x=2 '{ print $x }'
  707. ++ (( cmdindex++ ))
  708. ++ (( cmdindex <= 2 ))
  709. ++ (( index+=3 ))
  710. ++ (( index < 66 ))
  711. +++ echo 'i;install'
  712. +++ awk -F ';' '{ print NF }'
  713. ++ cmdamount=2
  714. ++ (( cmdindex=1 ))
  715. ++ (( cmdindex <= 2 ))
  716. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  717. +++ echo 'i;install'
  718. +++ awk -F ';' -v x=1 '{ print $x }'
  719. ++ (( cmdindex++ ))
  720. ++ (( cmdindex <= 2 ))
  721. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  722. +++ echo 'i;install'
  723. +++ awk -F ';' -v x=2 '{ print $x }'
  724. ++ (( cmdindex++ ))
  725. ++ (( cmdindex <= 2 ))
  726. ++ (( index+=3 ))
  727. ++ (( index < 66 ))
  728. +++ echo 'ai;auto-install'
  729. +++ awk -F ';' '{ print NF }'
  730. ++ cmdamount=2
  731. ++ (( cmdindex=1 ))
  732. ++ (( cmdindex <= 2 ))
  733. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  734. +++ echo 'ai;auto-install'
  735. +++ awk -F ';' -v x=1 '{ print $x }'
  736. ++ (( cmdindex++ ))
  737. ++ (( cmdindex <= 2 ))
  738. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  739. +++ echo 'ai;auto-install'
  740. +++ awk -F ';' -v x=2 '{ print $x }'
  741. ++ (( cmdindex++ ))
  742. ++ (( cmdindex <= 2 ))
  743. ++ (( index+=3 ))
  744. ++ (( index < 66 ))
  745. +++ echo 'dev;developer'
  746. +++ awk -F ';' '{ print NF }'
  747. ++ cmdamount=2
  748. ++ (( cmdindex=1 ))
  749. ++ (( cmdindex <= 2 ))
  750. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  751. +++ echo 'dev;developer'
  752. +++ awk -F ';' -v x=1 '{ print $x }'
  753. ++ (( cmdindex++ ))
  754. ++ (( cmdindex <= 2 ))
  755. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  756. +++ echo 'dev;developer'
  757. +++ awk -F ';' -v x=2 '{ print $x }'
  758. ++ (( cmdindex++ ))
  759. ++ (( cmdindex <= 2 ))
  760. ++ (( index+=3 ))
  761. ++ (( index < 66 ))
  762. +++ echo 'dd;detect-deps'
  763. +++ awk -F ';' '{ print NF }'
  764. ++ cmdamount=2
  765. ++ (( cmdindex=1 ))
  766. ++ (( cmdindex <= 2 ))
  767. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  768. +++ echo 'dd;detect-deps'
  769. +++ awk -F ';' -v x=1 '{ print $x }'
  770. ++ (( cmdindex++ ))
  771. ++ (( cmdindex <= 2 ))
  772. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  773. +++ echo 'dd;detect-deps'
  774. +++ awk -F ';' -v x=2 '{ print $x }'
  775. ++ (( cmdindex++ ))
  776. ++ (( cmdindex <= 2 ))
  777. ++ (( index+=3 ))
  778. ++ (( index < 66 ))
  779. +++ echo 'dg;detect-glibc'
  780. +++ awk -F ';' '{ print NF }'
  781. ++ cmdamount=2
  782. ++ (( cmdindex=1 ))
  783. ++ (( cmdindex <= 2 ))
  784. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  785. +++ echo 'dg;detect-glibc'
  786. +++ awk -F ';' -v x=1 '{ print $x }'
  787. ++ (( cmdindex++ ))
  788. ++ (( cmdindex <= 2 ))
  789. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  790. +++ echo 'dg;detect-glibc'
  791. +++ awk -F ';' -v x=2 '{ print $x }'
  792. ++ (( cmdindex++ ))
  793. ++ (( cmdindex <= 2 ))
  794. ++ (( index+=3 ))
  795. ++ (( index < 66 ))
  796. +++ echo 'dl;detect-ldd'
  797. +++ awk -F ';' '{ print NF }'
  798. ++ cmdamount=2
  799. ++ (( cmdindex=1 ))
  800. ++ (( cmdindex <= 2 ))
  801. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  802. +++ echo 'dl;detect-ldd'
  803. +++ awk -F ';' -v x=1 '{ print $x }'
  804. ++ (( cmdindex++ ))
  805. ++ (( cmdindex <= 2 ))
  806. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  807. +++ echo 'dl;detect-ldd'
  808. +++ awk -F ';' -v x=2 '{ print $x }'
  809. ++ (( cmdindex++ ))
  810. ++ (( cmdindex <= 2 ))
  811. ++ (( index+=3 ))
  812. ++ (( index < 66 ))
  813. +++ echo 'qr;query-raw'
  814. +++ awk -F ';' '{ print NF }'
  815. ++ cmdamount=2
  816. ++ (( cmdindex=1 ))
  817. ++ (( cmdindex <= 2 ))
  818. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  819. +++ echo 'qr;query-raw'
  820. +++ awk -F ';' -v x=1 '{ print $x }'
  821. ++ (( cmdindex++ ))
  822. ++ (( cmdindex <= 2 ))
  823. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  824. +++ echo 'qr;query-raw'
  825. +++ awk -F ';' -v x=2 '{ print $x }'
  826. ++ (( cmdindex++ ))
  827. ++ (( cmdindex <= 2 ))
  828. ++ (( index+=3 ))
  829. ++ (( index < 66 ))
  830. +++ echo 'cf;clear-functions'
  831. +++ awk -F ';' '{ print NF }'
  832. ++ cmdamount=2
  833. ++ (( cmdindex=1 ))
  834. ++ (( cmdindex <= 2 ))
  835. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  836. +++ echo 'cf;clear-functions'
  837. +++ awk -F ';' -v x=1 '{ print $x }'
  838. ++ (( cmdindex++ ))
  839. ++ (( cmdindex <= 2 ))
  840. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  841. +++ echo 'cf;clear-functions'
  842. +++ awk -F ';' -v x=2 '{ print $x }'
  843. ++ (( cmdindex++ ))
  844. ++ (( cmdindex <= 2 ))
  845. ++ (( index+=3 ))
  846. ++ (( index < 66 ))
  847. +++ echo 'do;donate'
  848. +++ awk -F ';' '{ print NF }'
  849. ++ cmdamount=2
  850. ++ (( cmdindex=1 ))
  851. ++ (( cmdindex <= 2 ))
  852. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  853. +++ echo 'do;donate'
  854. +++ awk -F ';' -v x=1 '{ print $x }'
  855. ++ (( cmdindex++ ))
  856. ++ (( cmdindex <= 2 ))
  857. ++ optcommands+=("$(echo "${currentopt[index]}" | awk -F ';' -v x=${cmdindex} '{ print $x }')")
  858. +++ echo 'do;donate'
  859. +++ awk -F ';' -v x=2 '{ print $x }'
  860. ++ (( cmdindex++ ))
  861. ++ (( cmdindex <= 2 ))
  862. ++ (( index+=3 ))
  863. ++ (( index < 66 ))
  864. ++ '[' -z install ']'
  865. ++ for i in "${optcommands[@]}"
  866. ++ '[' st == install ']'
  867. ++ for i in "${optcommands[@]}"
  868. ++ '[' start == install ']'
  869. ++ for i in "${optcommands[@]}"
  870. ++ '[' sp == install ']'
  871. ++ for i in "${optcommands[@]}"
  872. ++ '[' stop == install ']'
  873. ++ for i in "${optcommands[@]}"
  874. ++ '[' r == install ']'
  875. ++ for i in "${optcommands[@]}"
  876. ++ '[' restart == install ']'
  877. ++ for i in "${optcommands[@]}"
  878. ++ '[' m == install ']'
  879. ++ for i in "${optcommands[@]}"
  880. ++ '[' monitor == install ']'
  881. ++ for i in "${optcommands[@]}"
  882. ++ '[' ta == install ']'
  883. ++ for i in "${optcommands[@]}"
  884. ++ '[' test-alert == install ']'
  885. ++ for i in "${optcommands[@]}"
  886. ++ '[' dt == install ']'
  887. ++ for i in "${optcommands[@]}"
  888. ++ '[' details == install ']'
  889. ++ for i in "${optcommands[@]}"
  890. ++ '[' pd == install ']'
  891. ++ for i in "${optcommands[@]}"
  892. ++ '[' postdetails == install ']'
  893. ++ for i in "${optcommands[@]}"
  894. ++ '[' ul == install ']'
  895. ++ for i in "${optcommands[@]}"
  896. ++ '[' update-lgsm == install ']'
  897. ++ for i in "${optcommands[@]}"
  898. ++ '[' uf == install ']'
  899. ++ for i in "${optcommands[@]}"
  900. ++ '[' update-functions == install ']'
  901. ++ for i in "${optcommands[@]}"
  902. ++ '[' u == install ']'
  903. ++ for i in "${optcommands[@]}"
  904. ++ '[' update == install ']'
  905. ++ for i in "${optcommands[@]}"
  906. ++ '[' b == install ']'
  907. ++ for i in "${optcommands[@]}"
  908. ++ '[' backup == install ']'
  909. ++ for i in "${optcommands[@]}"
  910. ++ '[' c == install ']'
  911. ++ for i in "${optcommands[@]}"
  912. ++ '[' console == install ']'
  913. ++ for i in "${optcommands[@]}"
  914. ++ '[' d == install ']'
  915. ++ for i in "${optcommands[@]}"
  916. ++ '[' debug == install ']'
  917. ++ for i in "${optcommands[@]}"
  918. ++ '[' pw == install ']'
  919. ++ for i in "${optcommands[@]}"
  920. ++ '[' change-password == install ']'
  921. ++ for i in "${optcommands[@]}"
  922. ++ '[' i == install ']'
  923. ++ for i in "${optcommands[@]}"
  924. ++ '[' install == install ']'
  925. ++ index=0
  926. ++ (( index=0 ))
  927. ++ (( index < 66 ))
  928. +++ echo 'st;start'
  929. +++ awk -F ';' '{ print NF }'
  930. ++ currcmdamount=2
  931. ++ (( currcmdindex=1 ))
  932. ++ (( currcmdindex <= 2 ))
  933. +++ echo 'st;start'
  934. +++ awk -F ';' -v x=1 '{ print $x }'
  935. ++ '[' st == install ']'
  936. ++ (( currcmdindex++ ))
  937. ++ (( currcmdindex <= 2 ))
  938. +++ echo 'st;start'
  939. +++ awk -F ';' -v x=2 '{ print $x }'
  940. ++ '[' start == install ']'
  941. ++ (( currcmdindex++ ))
  942. ++ (( currcmdindex <= 2 ))
  943. ++ (( index+=3 ))
  944. ++ (( index < 66 ))
  945. +++ echo 'sp;stop'
  946. +++ awk -F ';' '{ print NF }'
  947. ++ currcmdamount=2
  948. ++ (( currcmdindex=1 ))
  949. ++ (( currcmdindex <= 2 ))
  950. +++ echo 'sp;stop'
  951. +++ awk -F ';' -v x=1 '{ print $x }'
  952. ++ '[' sp == install ']'
  953. ++ (( currcmdindex++ ))
  954. ++ (( currcmdindex <= 2 ))
  955. +++ echo 'sp;stop'
  956. +++ awk -F ';' -v x=2 '{ print $x }'
  957. ++ '[' stop == install ']'
  958. ++ (( currcmdindex++ ))
  959. ++ (( currcmdindex <= 2 ))
  960. ++ (( index+=3 ))
  961. ++ (( index < 66 ))
  962. +++ echo 'r;restart'
  963. +++ awk -F ';' '{ print NF }'
  964. ++ currcmdamount=2
  965. ++ (( currcmdindex=1 ))
  966. ++ (( currcmdindex <= 2 ))
  967. +++ echo 'r;restart'
  968. +++ awk -F ';' -v x=1 '{ print $x }'
  969. ++ '[' r == install ']'
  970. ++ (( currcmdindex++ ))
  971. ++ (( currcmdindex <= 2 ))
  972. +++ echo 'r;restart'
  973. +++ awk -F ';' -v x=2 '{ print $x }'
  974. ++ '[' restart == install ']'
  975. ++ (( currcmdindex++ ))
  976. ++ (( currcmdindex <= 2 ))
  977. ++ (( index+=3 ))
  978. ++ (( index < 66 ))
  979. +++ echo 'm;monitor'
  980. +++ awk -F ';' '{ print NF }'
  981. ++ currcmdamount=2
  982. ++ (( currcmdindex=1 ))
  983. ++ (( currcmdindex <= 2 ))
  984. +++ echo 'm;monitor'
  985. +++ awk -F ';' -v x=1 '{ print $x }'
  986. ++ '[' m == install ']'
  987. ++ (( currcmdindex++ ))
  988. ++ (( currcmdindex <= 2 ))
  989. +++ echo 'm;monitor'
  990. +++ awk -F ';' -v x=2 '{ print $x }'
  991. ++ '[' monitor == install ']'
  992. ++ (( currcmdindex++ ))
  993. ++ (( currcmdindex <= 2 ))
  994. ++ (( index+=3 ))
  995. ++ (( index < 66 ))
  996. +++ echo 'ta;test-alert'
  997. +++ awk -F ';' '{ print NF }'
  998. ++ currcmdamount=2
  999. ++ (( currcmdindex=1 ))
  1000. ++ (( currcmdindex <= 2 ))
  1001. +++ echo 'ta;test-alert'
  1002. +++ awk -F ';' -v x=1 '{ print $x }'
  1003. ++ '[' ta == install ']'
  1004. ++ (( currcmdindex++ ))
  1005. ++ (( currcmdindex <= 2 ))
  1006. +++ echo 'ta;test-alert'
  1007. +++ awk -F ';' -v x=2 '{ print $x }'
  1008. ++ '[' test-alert == install ']'
  1009. ++ (( currcmdindex++ ))
  1010. ++ (( currcmdindex <= 2 ))
  1011. ++ (( index+=3 ))
  1012. ++ (( index < 66 ))
  1013. +++ echo 'dt;details'
  1014. +++ awk -F ';' '{ print NF }'
  1015. ++ currcmdamount=2
  1016. ++ (( currcmdindex=1 ))
  1017. ++ (( currcmdindex <= 2 ))
  1018. +++ echo 'dt;details'
  1019. +++ awk -F ';' -v x=1 '{ print $x }'
  1020. ++ '[' dt == install ']'
  1021. ++ (( currcmdindex++ ))
  1022. ++ (( currcmdindex <= 2 ))
  1023. +++ echo 'dt;details'
  1024. +++ awk -F ';' -v x=2 '{ print $x }'
  1025. ++ '[' details == install ']'
  1026. ++ (( currcmdindex++ ))
  1027. ++ (( currcmdindex <= 2 ))
  1028. ++ (( index+=3 ))
  1029. ++ (( index < 66 ))
  1030. +++ echo 'pd;postdetails'
  1031. +++ awk -F ';' '{ print NF }'
  1032. ++ currcmdamount=2
  1033. ++ (( currcmdindex=1 ))
  1034. ++ (( currcmdindex <= 2 ))
  1035. +++ echo 'pd;postdetails'
  1036. +++ awk -F ';' -v x=1 '{ print $x }'
  1037. ++ '[' pd == install ']'
  1038. ++ (( currcmdindex++ ))
  1039. ++ (( currcmdindex <= 2 ))
  1040. +++ echo 'pd;postdetails'
  1041. +++ awk -F ';' -v x=2 '{ print $x }'
  1042. ++ '[' postdetails == install ']'
  1043. ++ (( currcmdindex++ ))
  1044. ++ (( currcmdindex <= 2 ))
  1045. ++ (( index+=3 ))
  1046. ++ (( index < 66 ))
  1047. +++ echo 'ul;update-lgsm;uf;update-functions'
  1048. +++ awk -F ';' '{ print NF }'
  1049. ++ currcmdamount=4
  1050. ++ (( currcmdindex=1 ))
  1051. ++ (( currcmdindex <= 4 ))
  1052. +++ echo 'ul;update-lgsm;uf;update-functions'
  1053. +++ awk -F ';' -v x=1 '{ print $x }'
  1054. ++ '[' ul == install ']'
  1055. ++ (( currcmdindex++ ))
  1056. ++ (( currcmdindex <= 4 ))
  1057. +++ echo 'ul;update-lgsm;uf;update-functions'
  1058. +++ awk -F ';' -v x=2 '{ print $x }'
  1059. ++ '[' update-lgsm == install ']'
  1060. ++ (( currcmdindex++ ))
  1061. ++ (( currcmdindex <= 4 ))
  1062. +++ echo 'ul;update-lgsm;uf;update-functions'
  1063. +++ awk -F ';' -v x=3 '{ print $x }'
  1064. ++ '[' uf == install ']'
  1065. ++ (( currcmdindex++ ))
  1066. ++ (( currcmdindex <= 4 ))
  1067. +++ echo 'ul;update-lgsm;uf;update-functions'
  1068. +++ awk -F ';' -v x=4 '{ print $x }'
  1069. ++ '[' update-functions == install ']'
  1070. ++ (( currcmdindex++ ))
  1071. ++ (( currcmdindex <= 4 ))
  1072. ++ (( index+=3 ))
  1073. ++ (( index < 66 ))
  1074. +++ echo 'u;update'
  1075. +++ awk -F ';' '{ print NF }'
  1076. ++ currcmdamount=2
  1077. ++ (( currcmdindex=1 ))
  1078. ++ (( currcmdindex <= 2 ))
  1079. +++ echo 'u;update'
  1080. +++ awk -F ';' -v x=1 '{ print $x }'
  1081. ++ '[' u == install ']'
  1082. ++ (( currcmdindex++ ))
  1083. ++ (( currcmdindex <= 2 ))
  1084. +++ echo 'u;update'
  1085. +++ awk -F ';' -v x=2 '{ print $x }'
  1086. ++ '[' update == install ']'
  1087. ++ (( currcmdindex++ ))
  1088. ++ (( currcmdindex <= 2 ))
  1089. ++ (( index+=3 ))
  1090. ++ (( index < 66 ))
  1091. +++ echo 'b;backup'
  1092. +++ awk -F ';' '{ print NF }'
  1093. ++ currcmdamount=2
  1094. ++ (( currcmdindex=1 ))
  1095. ++ (( currcmdindex <= 2 ))
  1096. +++ echo 'b;backup'
  1097. +++ awk -F ';' -v x=1 '{ print $x }'
  1098. ++ '[' b == install ']'
  1099. ++ (( currcmdindex++ ))
  1100. ++ (( currcmdindex <= 2 ))
  1101. +++ echo 'b;backup'
  1102. +++ awk -F ';' -v x=2 '{ print $x }'
  1103. ++ '[' backup == install ']'
  1104. ++ (( currcmdindex++ ))
  1105. ++ (( currcmdindex <= 2 ))
  1106. ++ (( index+=3 ))
  1107. ++ (( index < 66 ))
  1108. +++ echo 'c;console'
  1109. +++ awk -F ';' '{ print NF }'
  1110. ++ currcmdamount=2
  1111. ++ (( currcmdindex=1 ))
  1112. ++ (( currcmdindex <= 2 ))
  1113. +++ echo 'c;console'
  1114. +++ awk -F ';' -v x=1 '{ print $x }'
  1115. ++ '[' c == install ']'
  1116. ++ (( currcmdindex++ ))
  1117. ++ (( currcmdindex <= 2 ))
  1118. +++ echo 'c;console'
  1119. +++ awk -F ';' -v x=2 '{ print $x }'
  1120. ++ '[' console == install ']'
  1121. ++ (( currcmdindex++ ))
  1122. ++ (( currcmdindex <= 2 ))
  1123. ++ (( index+=3 ))
  1124. ++ (( index < 66 ))
  1125. +++ echo 'd;debug'
  1126. +++ awk -F ';' '{ print NF }'
  1127. ++ currcmdamount=2
  1128. ++ (( currcmdindex=1 ))
  1129. ++ (( currcmdindex <= 2 ))
  1130. +++ echo 'd;debug'
  1131. +++ awk -F ';' -v x=1 '{ print $x }'
  1132. ++ '[' d == install ']'
  1133. ++ (( currcmdindex++ ))
  1134. ++ (( currcmdindex <= 2 ))
  1135. +++ echo 'd;debug'
  1136. +++ awk -F ';' -v x=2 '{ print $x }'
  1137. ++ '[' debug == install ']'
  1138. ++ (( currcmdindex++ ))
  1139. ++ (( currcmdindex <= 2 ))
  1140. ++ (( index+=3 ))
  1141. ++ (( index < 66 ))
  1142. +++ echo 'pw;change-password'
  1143. +++ awk -F ';' '{ print NF }'
  1144. ++ currcmdamount=2
  1145. ++ (( currcmdindex=1 ))
  1146. ++ (( currcmdindex <= 2 ))
  1147. +++ echo 'pw;change-password'
  1148. +++ awk -F ';' -v x=1 '{ print $x }'
  1149. ++ '[' pw == install ']'
  1150. ++ (( currcmdindex++ ))
  1151. ++ (( currcmdindex <= 2 ))
  1152. +++ echo 'pw;change-password'
  1153. +++ awk -F ';' -v x=2 '{ print $x }'
  1154. ++ '[' change-password == install ']'
  1155. ++ (( currcmdindex++ ))
  1156. ++ (( currcmdindex <= 2 ))
  1157. ++ (( index+=3 ))
  1158. ++ (( index < 66 ))
  1159. +++ echo 'i;install'
  1160. +++ awk -F ';' '{ print NF }'
  1161. ++ currcmdamount=2
  1162. ++ (( currcmdindex=1 ))
  1163. ++ (( currcmdindex <= 2 ))
  1164. +++ echo 'i;install'
  1165. +++ awk -F ';' -v x=1 '{ print $x }'
  1166. ++ '[' i == install ']'
  1167. ++ (( currcmdindex++ ))
  1168. ++ (( currcmdindex <= 2 ))
  1169. +++ echo 'i;install'
  1170. +++ awk -F ';' -v x=2 '{ print $x }'
  1171. ++ '[' install == install ']'
  1172. ++ eval command_install.sh
  1173. +++ command_install.sh
  1174. +++ functionfile=command_install.sh
  1175. +++ fn_fetch_function
  1176. +++ github_file_url_dir=lgsm/functions
  1177. +++ github_file_url_name=command_install.sh
  1178. +++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
  1179. +++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
  1180. +++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1181. +++ local_filename=command_install.sh
  1182. +++ chmodx=chmodx
  1183. +++ run=run
  1184. +++ forcedl=noforce
  1185. +++ md5=nomd5
  1186. +++ 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
  1187. +++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/command_install.sh
  1188. +++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1189. +++ local_filename=command_install.sh
  1190. +++ chmodx=chmodx
  1191. +++ run=run
  1192. +++ forcedl=noforce
  1193. +++ md5=nomd5
  1194. +++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh ']'
  1195. +++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1196. +++ trap fn_fetch_trap INT
  1197. +++ '[' sh == bz2 ']'
  1198. +++ '[' sh == gz ']'
  1199. +++ '[' sh == zip ']'
  1200. +++ '[' sh == jar ']'
  1201. +++ '[' sh == xz ']'
  1202. +++ echo -en '    fetching command_install.sh...\c'
  1203. ++++ /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
  1204. +++ curlcmd=
  1205. +++ local exitcode=0
  1206. +++ '[' 0 -ne 0 ']'
  1207. +++ fn_print_ok_eol_nl
  1208. +++ echo -e '\e[32mOK\e[0m'
  1209. +++ '[' -f '' ']'
  1210. +++ trap - INT
  1211. +++ '[' chmodx == chmodx ']'
  1212. +++ chmod +x /home/xtoor/atlasserver/lgsm/functions/command_install.sh
  1213. +++ '[' -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh ']'
  1214. +++ fn_dl_md5
  1215. +++ '[' nomd5 '!=' 0 ']'
  1216. +++ '[' nomd5 '!=' nomd5 ']'
  1217. +++ '[' run == run ']'
  1218. +++ source /home/xtoor/atlasserver/lgsm/functions/command_install.sh
  1219. ++++ local commandname=INSTALL
  1220. ++++ local commandaction=Install
  1221. ++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/command_install.sh
  1222. +++++ basename /home/xtoor/atlasserver/lgsm/functions/command_install.sh
  1223. ++++ local function_selfname=command_install.sh
  1224. ++++ check.sh
  1225. ++++ functionfile=check.sh
  1226. ++++ fn_fetch_function
  1227. ++++ github_file_url_dir=lgsm/functions
  1228. ++++ github_file_url_name=check.sh
  1229. ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
  1230. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
  1231. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1232. ++++ local_filename=check.sh
  1233. ++++ chmodx=chmodx
  1234. ++++ run=run
  1235. ++++ forcedl=noforce
  1236. ++++ md5=nomd5
  1237. ++++ 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
  1238. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check.sh
  1239. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1240. ++++ local_filename=check.sh
  1241. ++++ chmodx=chmodx
  1242. ++++ run=run
  1243. ++++ forcedl=noforce
  1244. ++++ md5=nomd5
  1245. ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check.sh ']'
  1246. ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1247. ++++ trap fn_fetch_trap INT
  1248. ++++ '[' sh == bz2 ']'
  1249. ++++ '[' sh == gz ']'
  1250. ++++ '[' sh == zip ']'
  1251. ++++ '[' sh == jar ']'
  1252. ++++ '[' sh == xz ']'
  1253. ++++ echo -en '    fetching check.sh...\c'
  1254. +++++ /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
  1255. ++++ curlcmd=
  1256. ++++ local exitcode=0
  1257. ++++ '[' 0 -ne 0 ']'
  1258. ++++ fn_print_ok_eol_nl
  1259. ++++ echo -e '\e[32mOK\e[0m'
  1260. ++++ '[' -f '' ']'
  1261. ++++ trap - INT
  1262. ++++ '[' chmodx == chmodx ']'
  1263. ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check.sh
  1264. ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check.sh ']'
  1265. ++++ fn_dl_md5
  1266. ++++ '[' nomd5 '!=' 0 ']'
  1267. ++++ '[' nomd5 '!=' nomd5 ']'
  1268. ++++ '[' run == run ']'
  1269. ++++ source /home/xtoor/atlasserver/lgsm/functions/check.sh
  1270. +++++ local commandname=CHECK
  1271. +++++ '[' install '!=' install ']'
  1272. +++++ check_tmuxception.sh
  1273. +++++ functionfile=check_tmuxception.sh
  1274. +++++ fn_fetch_function
  1275. +++++ github_file_url_dir=lgsm/functions
  1276. +++++ github_file_url_name=check_tmuxception.sh
  1277. +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
  1278. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
  1279. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1280. +++++ local_filename=check_tmuxception.sh
  1281. +++++ chmodx=chmodx
  1282. +++++ run=run
  1283. +++++ forcedl=noforce
  1284. +++++ md5=nomd5
  1285. +++++ 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
  1286. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_tmuxception.sh
  1287. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1288. +++++ local_filename=check_tmuxception.sh
  1289. +++++ chmodx=chmodx
  1290. +++++ run=run
  1291. +++++ forcedl=noforce
  1292. +++++ md5=nomd5
  1293. +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh ']'
  1294. +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1295. +++++ trap fn_fetch_trap INT
  1296. +++++ '[' sh == bz2 ']'
  1297. +++++ '[' sh == gz ']'
  1298. +++++ '[' sh == zip ']'
  1299. +++++ '[' sh == jar ']'
  1300. +++++ '[' sh == xz ']'
  1301. +++++ echo -en '    fetching check_tmuxception.sh...\c'
  1302. ++++++ /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
  1303. +++++ curlcmd=
  1304. +++++ local exitcode=0
  1305. +++++ '[' 0 -ne 0 ']'
  1306. +++++ fn_print_ok_eol_nl
  1307. +++++ echo -e '\e[32mOK\e[0m'
  1308. +++++ '[' -f '' ']'
  1309. +++++ trap - INT
  1310. +++++ '[' chmodx == chmodx ']'
  1311. +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh
  1312. +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh ']'
  1313. +++++ fn_dl_md5
  1314. +++++ '[' nomd5 '!=' 0 ']'
  1315. +++++ '[' nomd5 '!=' nomd5 ']'
  1316. +++++ '[' run == run ']'
  1317. +++++ source /home/xtoor/atlasserver/lgsm/functions/check_tmuxception.sh
  1318. ++++++ local commandname=check
  1319. ++++++ fn_check_is_in_tmux
  1320. ++++++ '[' -n '' ']'
  1321. ++++++ fn_check_is_in_screen
  1322. ++++++ '[' -n '' ']'
  1323. ++++++ whoami
  1324. +++++ '[' xtoor '!=' root ']'
  1325. +++++ '[' command_install.sh '!=' command_monitor.sh ']'
  1326. +++++ check_permissions.sh
  1327. +++++ functionfile=check_permissions.sh
  1328. +++++ fn_fetch_function
  1329. +++++ github_file_url_dir=lgsm/functions
  1330. +++++ github_file_url_name=check_permissions.sh
  1331. +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
  1332. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
  1333. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1334. +++++ local_filename=check_permissions.sh
  1335. +++++ chmodx=chmodx
  1336. +++++ run=run
  1337. +++++ forcedl=noforce
  1338. +++++ md5=nomd5
  1339. +++++ 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
  1340. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_permissions.sh
  1341. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1342. +++++ local_filename=check_permissions.sh
  1343. +++++ chmodx=chmodx
  1344. +++++ run=run
  1345. +++++ forcedl=noforce
  1346. +++++ md5=nomd5
  1347. +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh ']'
  1348. +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1349. +++++ trap fn_fetch_trap INT
  1350. +++++ '[' sh == bz2 ']'
  1351. +++++ '[' sh == gz ']'
  1352. +++++ '[' sh == zip ']'
  1353. +++++ '[' sh == jar ']'
  1354. +++++ '[' sh == xz ']'
  1355. +++++ echo -en '    fetching check_permissions.sh...\c'
  1356. ++++++ /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
  1357. +++++ curlcmd=
  1358. +++++ local exitcode=0
  1359. +++++ '[' 0 -ne 0 ']'
  1360. +++++ fn_print_ok_eol_nl
  1361. +++++ echo -e '\e[32mOK\e[0m'
  1362. +++++ '[' -f '' ']'
  1363. +++++ trap - INT
  1364. +++++ '[' chmodx == chmodx ']'
  1365. +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh
  1366. +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh ']'
  1367. +++++ fn_dl_md5
  1368. +++++ '[' nomd5 '!=' 0 ']'
  1369. +++++ '[' nomd5 '!=' nomd5 ']'
  1370. +++++ '[' run == run ']'
  1371. +++++ source /home/xtoor/atlasserver/lgsm/functions/check_permissions.sh
  1372. ++++++ local commandname=CHECK
  1373. +++++++ whoami
  1374. ++++++ '[' xtoor '!=' root ']'
  1375. ++++++ fn_check_ownership
  1376. ++++++ '[' -f /home/xtoor/atlasserver/atlasserver ']'
  1377. +++++++ wc -l
  1378. ++++++++ whoami
  1379. +++++++ find /home/xtoor/atlasserver/atlasserver -not -user xtoor
  1380. ++++++ '[' 0 -ne 0 ']'
  1381. ++++++ '[' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1382. +++++++ wc -l
  1383. ++++++++ whoami
  1384. +++++++ find /home/xtoor/atlasserver/lgsm/functions -not -user xtoor
  1385. ++++++ '[' 0 -ne 0 ']'
  1386. ++++++ '[' -d /home/xtoor/atlasserver/serverfiles ']'
  1387. +++++++ wc -l
  1388. ++++++++ whoami
  1389. +++++++ find /home/xtoor/atlasserver/serverfiles -not -user xtoor
  1390. ++++++ '[' 0 -ne 0 ']'
  1391. ++++++ '[' '' == 1 ']'
  1392. ++++++ '[' '' == 1 ']'
  1393. ++++++ '[' '' == 1 ']'
  1394. ++++++ fn_check_permissions
  1395. ++++++ '[' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1396. +++++++ find /home/xtoor/atlasserver/lgsm/functions -type f -not -executable
  1397. +++++++ wc -l
  1398. ++++++ '[' 0 -ne 0 ']'
  1399. ++++++ '[' -n /home/xtoor/atlasserver ']'
  1400. +++++++ stat -c %a /home/xtoor/atlasserver
  1401. ++++++ rootdirperm=775
  1402. ++++++ userrootdirperm=7
  1403. ++++++ grouprootdirperm=7
  1404. ++++++ '[' 7 '!=' 7 ']'
  1405. +++++++ basename ''
  1406. ++++++ execname=
  1407. ++++++ '[' -f / ']'
  1408. ++++++ '[' command_install.sh == command_start.sh ']'
  1409. +++++ '[' command_install.sh '!=' command_install.sh ']'
  1410. +++++ allowed_commands_array=(command_start.sh)
  1411. +++++ local allowed_commands_array
  1412. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1413. +++++ '[' command_start.sh == command_install.sh ']'
  1414. ++++++ whoami
  1415. +++++ '[' xtoor '!=' root ']'
  1416. +++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
  1417. +++++ local allowed_commands_array
  1418. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1419. +++++ '[' command_debug.sh == command_install.sh ']'
  1420. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1421. +++++ '[' command_start.sh == command_install.sh ']'
  1422. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1423. +++++ '[' command_install.sh == command_install.sh ']'
  1424. +++++ check_glibc.sh
  1425. +++++ functionfile=check_glibc.sh
  1426. +++++ fn_fetch_function
  1427. +++++ github_file_url_dir=lgsm/functions
  1428. +++++ github_file_url_name=check_glibc.sh
  1429. +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
  1430. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
  1431. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1432. +++++ local_filename=check_glibc.sh
  1433. +++++ chmodx=chmodx
  1434. +++++ run=run
  1435. +++++ forcedl=noforce
  1436. +++++ md5=nomd5
  1437. +++++ 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
  1438. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_glibc.sh
  1439. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1440. +++++ local_filename=check_glibc.sh
  1441. +++++ chmodx=chmodx
  1442. +++++ run=run
  1443. +++++ forcedl=noforce
  1444. +++++ md5=nomd5
  1445. +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh ']'
  1446. +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1447. +++++ trap fn_fetch_trap INT
  1448. +++++ '[' sh == bz2 ']'
  1449. +++++ '[' sh == gz ']'
  1450. +++++ '[' sh == zip ']'
  1451. +++++ '[' sh == jar ']'
  1452. +++++ '[' sh == xz ']'
  1453. +++++ echo -en '    fetching check_glibc.sh...\c'
  1454. ++++++ /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
  1455. +++++ curlcmd=
  1456. +++++ local exitcode=0
  1457. +++++ '[' 0 -ne 0 ']'
  1458. +++++ fn_print_ok_eol_nl
  1459. +++++ echo -e '\e[32mOK\e[0m'
  1460. +++++ '[' -f '' ']'
  1461. +++++ trap - INT
  1462. +++++ '[' chmodx == chmodx ']'
  1463. +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh
  1464. +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh ']'
  1465. +++++ fn_dl_md5
  1466. +++++ '[' nomd5 '!=' 0 ']'
  1467. +++++ '[' nomd5 '!=' nomd5 ']'
  1468. +++++ '[' run == run ']'
  1469. +++++ source /home/xtoor/atlasserver/lgsm/functions/check_glibc.sh
  1470. ++++++ local commandname=CHECK
  1471. ++++++ info_glibc.sh
  1472. ++++++ functionfile=info_glibc.sh
  1473. ++++++ fn_fetch_function
  1474. ++++++ github_file_url_dir=lgsm/functions
  1475. ++++++ github_file_url_name=info_glibc.sh
  1476. ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
  1477. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
  1478. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1479. ++++++ local_filename=info_glibc.sh
  1480. ++++++ chmodx=chmodx
  1481. ++++++ run=run
  1482. ++++++ forcedl=noforce
  1483. ++++++ md5=nomd5
  1484. ++++++ 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
  1485. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_glibc.sh
  1486. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1487. ++++++ local_filename=info_glibc.sh
  1488. ++++++ chmodx=chmodx
  1489. ++++++ run=run
  1490. ++++++ forcedl=noforce
  1491. ++++++ md5=nomd5
  1492. ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh ']'
  1493. ++++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1494. ++++++ trap fn_fetch_trap INT
  1495. ++++++ '[' sh == bz2 ']'
  1496. ++++++ '[' sh == gz ']'
  1497. ++++++ '[' sh == zip ']'
  1498. ++++++ '[' sh == jar ']'
  1499. ++++++ '[' sh == xz ']'
  1500. ++++++ echo -en '    fetching info_glibc.sh...\c'
  1501. +++++++ /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
  1502. ++++++ curlcmd=
  1503. ++++++ local exitcode=0
  1504. ++++++ '[' 0 -ne 0 ']'
  1505. ++++++ fn_print_ok_eol_nl
  1506. ++++++ echo -e '\e[32mOK\e[0m'
  1507. ++++++ '[' -f '' ']'
  1508. ++++++ trap - INT
  1509. ++++++ '[' chmodx == chmodx ']'
  1510. ++++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
  1511. ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh ']'
  1512. ++++++ fn_dl_md5
  1513. ++++++ '[' nomd5 '!=' 0 ']'
  1514. ++++++ '[' nomd5 '!=' nomd5 ']'
  1515. ++++++ '[' run == run ']'
  1516. ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
  1517. +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
  1518. ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_glibc.sh
  1519. +++++++ local function_selfname=info_glibc.sh
  1520. ++++++ info_distro.sh
  1521. ++++++ functionfile=info_distro.sh
  1522. ++++++ fn_fetch_function
  1523. ++++++ github_file_url_dir=lgsm/functions
  1524. ++++++ github_file_url_name=info_distro.sh
  1525. ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1526. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1527. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1528. ++++++ local_filename=info_distro.sh
  1529. ++++++ chmodx=chmodx
  1530. ++++++ run=run
  1531. ++++++ forcedl=noforce
  1532. ++++++ md5=nomd5
  1533. ++++++ 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
  1534. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1535. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1536. ++++++ local_filename=info_distro.sh
  1537. ++++++ chmodx=chmodx
  1538. ++++++ run=run
  1539. ++++++ forcedl=noforce
  1540. ++++++ md5=nomd5
  1541. ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
  1542. ++++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1543. ++++++ trap fn_fetch_trap INT
  1544. ++++++ '[' sh == bz2 ']'
  1545. ++++++ '[' sh == gz ']'
  1546. ++++++ '[' sh == zip ']'
  1547. ++++++ '[' sh == jar ']'
  1548. ++++++ '[' sh == xz ']'
  1549. ++++++ echo -en '    fetching info_distro.sh...\c'
  1550. +++++++ /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
  1551. ++++++ curlcmd=
  1552. ++++++ local exitcode=0
  1553. ++++++ '[' 0 -ne 0 ']'
  1554. ++++++ fn_print_ok_eol_nl
  1555. ++++++ echo -e '\e[32mOK\e[0m'
  1556. ++++++ '[' -f '' ']'
  1557. ++++++ trap - INT
  1558. ++++++ '[' chmodx == chmodx ']'
  1559. ++++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1560. ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
  1561. ++++++ fn_dl_md5
  1562. ++++++ '[' nomd5 '!=' 0 ']'
  1563. ++++++ '[' nomd5 '!=' nomd5 ']'
  1564. ++++++ '[' run == run ']'
  1565. ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1566. +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1567. ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1568. +++++++ local function_selfname=info_distro.sh
  1569. ++++++++ uname -m
  1570. +++++++ arch=x86_64
  1571. ++++++++ uname -r
  1572. +++++++ kernel=4.15.0-45-generic
  1573. +++++++ distro_info_array=(os-release lsb_release hostnamectl debian_version redhat-release)
  1574. +++++++ for distro_info in "${distro_info_array[@]}"
  1575. +++++++ '[' -f /etc/os-release ']'
  1576. +++++++ '[' os-release == os-release ']'
  1577. ++++++++ grep PRETTY_NAME /etc/os-release
  1578. ++++++++ sed s/PRETTY_NAME=//g
  1579. ++++++++ sed 's/\"//g'
  1580. ++++++++ tr -d '="'
  1581. +++++++ distroname='Ubuntu 18.04.1 LTS'
  1582. ++++++++ grep VERSION_ID /etc/os-release
  1583. ++++++++ sed 's/\"//g'
  1584. ++++++++ sed s/VERSION_ID=//g
  1585. +++++++ distroversion=18.04
  1586. ++++++++ grep ID /etc/os-release
  1587. ++++++++ sed 's/\"//g'
  1588. ++++++++ sed s/ID=//g
  1589. ++++++++ grep -v ID_
  1590. ++++++++ grep -v _ID
  1591. +++++++ distroid=ubuntu
  1592. ++++++++ grep VERSION_CODENAME /etc/os-release
  1593. ++++++++ sed 's/\"//g'
  1594. ++++++++ sed s/VERSION_CODENAME=//g
  1595. +++++++ distrocodename=bionic
  1596. +++++++ for distro_info in "${distro_info_array[@]}"
  1597. +++++++ '[' -f /etc/os-release ']'
  1598. +++++++ '[' lsb_release == os-release ']'
  1599. ++++++++ command -v lsb_release
  1600. +++++++ '[' -n /usr/bin/lsb_release ']'
  1601. +++++++ '[' lsb_release == lsb_release ']'
  1602. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  1603. +++++++ '[' -z 18.04 ']'
  1604. +++++++ '[' -z ubuntu ']'
  1605. +++++++ '[' -z bionic ']'
  1606. +++++++ for distro_info in "${distro_info_array[@]}"
  1607. +++++++ '[' -f /etc/os-release ']'
  1608. +++++++ '[' hostnamectl == os-release ']'
  1609. ++++++++ command -v lsb_release
  1610. +++++++ '[' -n /usr/bin/lsb_release ']'
  1611. +++++++ '[' hostnamectl == lsb_release ']'
  1612. ++++++++ command -v hostnamectl
  1613. +++++++ '[' -n /usr/bin/hostnamectl ']'
  1614. +++++++ '[' hostnamectl == hostnamectl ']'
  1615. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  1616. +++++++ for distro_info in "${distro_info_array[@]}"
  1617. +++++++ '[' -f /etc/os-release ']'
  1618. +++++++ '[' debian_version == os-release ']'
  1619. ++++++++ command -v lsb_release
  1620. +++++++ '[' -n /usr/bin/lsb_release ']'
  1621. +++++++ '[' debian_version == lsb_release ']'
  1622. ++++++++ command -v hostnamectl
  1623. +++++++ '[' -n /usr/bin/hostnamectl ']'
  1624. +++++++ '[' debian_version == hostnamectl ']'
  1625. +++++++ '[' -f /etc/debian_version ']'
  1626. +++++++ '[' debian_version == debian_version ']'
  1627. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  1628. +++++++ '[' -z 18.04 ']'
  1629. +++++++ '[' -z ubuntu ']'
  1630. +++++++ for distro_info in "${distro_info_array[@]}"
  1631. +++++++ '[' -f /etc/os-release ']'
  1632. +++++++ '[' redhat-release == os-release ']'
  1633. ++++++++ command -v lsb_release
  1634. +++++++ '[' -n /usr/bin/lsb_release ']'
  1635. +++++++ '[' redhat-release == lsb_release ']'
  1636. ++++++++ command -v hostnamectl
  1637. +++++++ '[' -n /usr/bin/hostnamectl ']'
  1638. +++++++ '[' redhat-release == hostnamectl ']'
  1639. +++++++ '[' -f /etc/debian_version ']'
  1640. +++++++ '[' redhat-release == debian_version ']'
  1641. +++++++ '[' -f /etc/redhat-release ']'
  1642. ++++++++ ldd --version
  1643. ++++++++ sed -n '1s/.* //p'
  1644. +++++++ glibcversion=2.27
  1645. ++++++++ command -V tmux
  1646. +++++++ '[' -z 'tmux is /usr/bin/tmux' ']'
  1647. ++++++++ tmux -V
  1648. ++++++++ tr -cd '[:digit:]'
  1649. ++++++++ sed -n '1 p'
  1650. ++++++++ sed 's/tmux //'
  1651. +++++++ '[' 26 -lt 16 ']'
  1652. ++++++++ tmux -V
  1653. +++++++ tmuxv='tmux 2.6'
  1654. +++++++ uptime='260470.74 513844.66'
  1655. +++++++ uptime=260470
  1656. +++++++ minutes=21
  1657. +++++++ hours=0
  1658. +++++++ days=3
  1659. ++++++++ uptime
  1660. ++++++++ awk -F 'load average: ' '{ print $2 }'
  1661. +++++++ load='0.16, 0.07, 0.01'
  1662. ++++++++ command -v numfmt
  1663. +++++++ '[' -n /usr/bin/numfmt ']'
  1664. ++++++++ grep MemTotal /proc/meminfo
  1665. ++++++++ awk '{print $2}'
  1666. +++++++ physmemtotalkb=4039372
  1667. ++++++++ grep '^MemFree' /proc/meminfo
  1668. ++++++++ awk '{print $2}'
  1669. +++++++ physmemfreekb=244752
  1670. ++++++++ grep '^Buffers' /proc/meminfo
  1671. ++++++++ awk '{print $2}'
  1672. +++++++ physmembufferskb=525172
  1673. ++++++++ grep '^Cached' /proc/meminfo
  1674. ++++++++ awk '{print $2}'
  1675. +++++++ physmemcachedkb=2532372
  1676. ++++++++ grep '^SReclaimable' /proc/meminfo
  1677. ++++++++ awk '{print $2}'
  1678. +++++++ physmemreclaimablekb=277796
  1679. +++++++ grep -q '^MemAvailable' /proc/meminfo
  1680. ++++++++ grep '^MemAvailable' /proc/meminfo
  1681. ++++++++ awk '{print $2}'
  1682. +++++++ physmemactualfreekb=3288056
  1683. +++++++ physmemtotalmb=3944
  1684. ++++++++ numfmt --to=iec --from=iec --suffix=B 4039372K
  1685. +++++++ physmemtotal=3.9GB
  1686. ++++++++ numfmt --to=iec --from=iec --suffix=B 3288056K
  1687. +++++++ physmemfree=3.2GB
  1688. ++++++++ numfmt --to=iec --from=iec --suffix=B 459280K
  1689. +++++++ physmemused=449MB
  1690. ++++++++ numfmt --to=iec --from=iec --suffix=B 3288056K
  1691. +++++++ physmemavailable=3.2GB
  1692. ++++++++ numfmt --to=iec --from=iec --suffix=B 2810168K
  1693. +++++++ physmemcached=2.7GB
  1694. +++++++++ grep '^SwapTotal' /proc/meminfo
  1695. +++++++++ awk '{print $2}'
  1696. ++++++++ numfmt --to=iec --from=iec --suffix=B 4038652K
  1697. +++++++ swaptotal=3.9GB
  1698. +++++++++ grep '^SwapFree' /proc/meminfo
  1699. +++++++++ awk '{print $2}'
  1700. ++++++++ numfmt --to=iec --from=iec --suffix=B 4038128K
  1701. +++++++ swapfree=3.9GB
  1702. +++++++++ grep '^SwapTotal' /proc/meminfo
  1703. +++++++++ awk '{print $2}'
  1704. +++++++++ grep '^SwapFree' /proc/meminfo
  1705. +++++++++ awk '{print $2}'
  1706. ++++++++ numfmt --to=iec --from=iec --suffix=B 524K
  1707. +++++++ swapused=524KB
  1708. ++++++++ df -hP /home/xtoor/atlasserver
  1709. ++++++++ awk '{print $1}'
  1710. ++++++++ grep -v Filesystem
  1711. +++++++ filesystem=/dev/sda2
  1712. ++++++++ df -hP /home/xtoor/atlasserver
  1713. ++++++++ awk '{print $2}'
  1714. ++++++++ grep -v Filesystem
  1715. +++++++ totalspace=293G
  1716. ++++++++ df -hP /home/xtoor/atlasserver
  1717. ++++++++ grep -v Filesystem
  1718. ++++++++ awk '{print $3}'
  1719. +++++++ usedspace=68G
  1720. ++++++++ df -hP /home/xtoor/atlasserver
  1721. ++++++++ grep -v Filesystem
  1722. ++++++++ awk '{print $4}'
  1723. +++++++ availspace=211G
  1724. ++++++++ du -sh /home/xtoor/atlasserver
  1725. ++++++++ awk '{print $1}'
  1726. +++++++ rootdirdu=296K
  1727. +++++++ '[' -z 296K ']'
  1728. ++++++++ du -sh /home/xtoor/atlasserver/serverfiles
  1729. ++++++++ awk '{print $1}'
  1730. +++++++ serverfilesdu=4.0K
  1731. +++++++ '[' -z 4.0K ']'
  1732. ++++++++ du -sh --exclude= /home/xtoor/atlasserver/serverfiles
  1733. ++++++++ awk '{print $1}'
  1734. +++++++ rootdirduexbackup=4.0K
  1735. +++++++ '[' -z 4.0K ']'
  1736. +++++++ '[' -d '' ']'
  1737. +++++++ '[' -z '' ']'
  1738. ++++++++ /usr/bin/curl -4 -m 3 ifconfig.co
  1739. +++++++ extip=72.90.180.15
  1740. +++++++ exitcode=0
  1741. +++++++ '[' 0 -eq 0 ']'
  1742. +++++++ echo 72.90.180.15
  1743. ++++++++ command -v jq
  1744. +++++++ '[' '!' /usr/bin/jq ']'
  1745. ++++++ '[' '' == 'NOT REQUIRED' ']'
  1746. +++++++ printf '%s\n\n' 2.27
  1747. +++++++ head -n 1
  1748. +++++++ sort -V
  1749. ++++++ '[' '' '!=' '' ']'
  1750. ++++++ '[' '' == UNKNOWN ']'
  1751. +++++ 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)
  1752. +++++ local allowed_commands_array
  1753. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1754. +++++ '[' command_backup.sh == command_install.sh ']'
  1755. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1756. +++++ '[' command_console.sh == command_install.sh ']'
  1757. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1758. +++++ '[' command_debug.sh == command_install.sh ']'
  1759. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1760. +++++ '[' command_details.sh == command_install.sh ']'
  1761. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1762. +++++ '[' command_unreal2_maps.sh == command_install.sh ']'
  1763. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1764. +++++ '[' command_fastdl.sh == command_install.sh ']'
  1765. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1766. +++++ '[' command_mods_install.sh == command_install.sh ']'
  1767. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1768. +++++ '[' command_mods_remove.sh == command_install.sh ']'
  1769. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1770. +++++ '[' command_mods_update.sh == command_install.sh ']'
  1771. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1772. +++++ '[' command_monitor.sh == command_install.sh ']'
  1773. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1774. +++++ '[' command_postdetails.sh == command_install.sh ']'
  1775. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1776. +++++ '[' command_restart.sh == command_install.sh ']'
  1777. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1778. +++++ '[' command_start.sh == command_install.sh ']'
  1779. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1780. +++++ '[' command_stop.sh == command_install.sh ']'
  1781. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1782. +++++ '[' command_test_alert.sh == command_install.sh ']'
  1783. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1784. +++++ '[' command_ts3_server_pass.sh == command_install.sh ']'
  1785. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1786. +++++ '[' command_update.sh == command_install.sh ']'
  1787. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1788. +++++ '[' command_update_functions.sh == command_install.sh ']'
  1789. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1790. +++++ '[' command_validate.sh == command_install.sh ']'
  1791. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1792. +++++ '[' command_wipe.sh == command_install.sh ']'
  1793. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1794. +++++ '[' command_unreal2_maps.sh == command_install.sh ']'
  1795. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1796. +++++ '[' command_ut99maps.sh == command_install.sh ']'
  1797. +++++ allowed_commands_array=(command_debug.sh command_start.sh command_stop.sh)
  1798. +++++ local allowed_commands_array
  1799. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1800. +++++ '[' command_debug.sh == command_install.sh ']'
  1801. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1802. +++++ '[' command_start.sh == command_install.sh ']'
  1803. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1804. +++++ '[' command_stop.sh == command_install.sh ']'
  1805. +++++ allowed_commands_array=(command_console.sh command_debug.sh command_monitor.sh command_start.sh command_stop.sh)
  1806. +++++ local allowed_commands_array
  1807. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1808. +++++ '[' command_console.sh == command_install.sh ']'
  1809. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1810. +++++ '[' command_debug.sh == command_install.sh ']'
  1811. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1812. +++++ '[' command_monitor.sh == command_install.sh ']'
  1813. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1814. +++++ '[' command_start.sh == command_install.sh ']'
  1815. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1816. +++++ '[' command_stop.sh == command_install.sh ']'
  1817. +++++ 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)
  1818. +++++ local allowed_commands_array
  1819. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1820. +++++ '[' command_debug.sh == command_install.sh ']'
  1821. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1822. +++++ '[' command_details.sh == command_install.sh ']'
  1823. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1824. +++++ '[' command_postdetails.sh == command_install.sh ']'
  1825. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1826. +++++ '[' command_monitor.sh == command_install.sh ']'
  1827. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1828. +++++ '[' command_start.sh == command_install.sh ']'
  1829. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1830. +++++ '[' command_stop.sh == command_install.sh ']'
  1831. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1832. +++++ '[' command_dev_query_raw.sh == command_install.sh ']'
  1833. +++++ allowed_commands_array=(update_steamcmd.sh command_debug.sh command_start.sh command_validate.sh)
  1834. +++++ local allowed_commands_array
  1835. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1836. +++++ '[' update_steamcmd.sh == command_install.sh ']'
  1837. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1838. +++++ '[' command_debug.sh == command_install.sh ']'
  1839. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1840. +++++ '[' command_start.sh == command_install.sh ']'
  1841. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1842. +++++ '[' command_validate.sh == command_install.sh ']'
  1843. +++++ 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)
  1844. +++++ local allowed_commands_array
  1845. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1846. +++++ '[' command_details.sh == command_install.sh ']'
  1847. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1848. +++++ '[' command_monitor.sh == command_install.sh ']'
  1849. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1850. +++++ '[' command_start.sh == command_install.sh ']'
  1851. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1852. +++++ '[' command_stop.sh == command_install.sh ']'
  1853. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1854. +++++ '[' command_ts3_server_pass.sh == command_install.sh ']'
  1855. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1856. +++++ '[' command_update.sh == command_install.sh ']'
  1857. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1858. +++++ '[' command_details.sh == command_install.sh ']'
  1859. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1860. +++++ '[' command_validate.sh == command_install.sh ']'
  1861. +++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
  1862. +++++ local allowed_commands_array
  1863. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1864. +++++ '[' command_debug.sh == command_install.sh ']'
  1865. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1866. +++++ '[' command_start.sh == command_install.sh ']'
  1867. +++++ for allowed_command in "${allowed_commands_array[@]}"
  1868. +++++ '[' command_install.sh == command_install.sh ']'
  1869. +++++ check_system_requirements.sh
  1870. +++++ functionfile=check_system_requirements.sh
  1871. +++++ fn_fetch_function
  1872. +++++ github_file_url_dir=lgsm/functions
  1873. +++++ github_file_url_name=check_system_requirements.sh
  1874. +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1875. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1876. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1877. +++++ local_filename=check_system_requirements.sh
  1878. +++++ chmodx=chmodx
  1879. +++++ run=run
  1880. +++++ forcedl=noforce
  1881. +++++ md5=nomd5
  1882. +++++ 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
  1883. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1884. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1885. +++++ local_filename=check_system_requirements.sh
  1886. +++++ chmodx=chmodx
  1887. +++++ run=run
  1888. +++++ forcedl=noforce
  1889. +++++ md5=nomd5
  1890. +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh ']'
  1891. +++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  1892. +++++ trap fn_fetch_trap INT
  1893. +++++ '[' sh == bz2 ']'
  1894. +++++ '[' sh == gz ']'
  1895. +++++ '[' sh == zip ']'
  1896. +++++ '[' sh == jar ']'
  1897. +++++ '[' sh == xz ']'
  1898. +++++ echo -en '    fetching check_system_requirements.sh...\c'
  1899. ++++++ /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
  1900. +++++ curlcmd=
  1901. +++++ local exitcode=0
  1902. +++++ '[' 0 -ne 0 ']'
  1903. +++++ fn_print_ok_eol_nl
  1904. +++++ echo -e '\e[32mOK\e[0m'
  1905. +++++ '[' -f '' ']'
  1906. +++++ trap - INT
  1907. +++++ '[' chmodx == chmodx ']'
  1908. +++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
  1909. +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh ']'
  1910. +++++ fn_dl_md5
  1911. +++++ '[' nomd5 '!=' 0 ']'
  1912. +++++ '[' nomd5 '!=' nomd5 ']'
  1913. +++++ '[' run == run ']'
  1914. +++++ source /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
  1915. ++++++ local commandname=CHECK
  1916. ++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
  1917. +++++++ basename /home/xtoor/atlasserver/lgsm/functions/check_system_requirements.sh
  1918. ++++++ local function_selfname=check_system_requirements.sh
  1919. ++++++ info_distro.sh
  1920. ++++++ functionfile=info_distro.sh
  1921. ++++++ fn_fetch_function
  1922. ++++++ github_file_url_dir=lgsm/functions
  1923. ++++++ github_file_url_name=info_distro.sh
  1924. ++++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1925. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1926. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1927. ++++++ local_filename=info_distro.sh
  1928. ++++++ chmodx=chmodx
  1929. ++++++ run=run
  1930. ++++++ forcedl=noforce
  1931. ++++++ md5=nomd5
  1932. ++++++ 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
  1933. ++++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/info_distro.sh
  1934. ++++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  1935. ++++++ local_filename=info_distro.sh
  1936. ++++++ chmodx=chmodx
  1937. ++++++ run=run
  1938. ++++++ forcedl=noforce
  1939. ++++++ md5=nomd5
  1940. ++++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
  1941. ++++++ '[' noforce == forcedl ']'
  1942. ++++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh ']'
  1943. ++++++ fn_dl_md5
  1944. ++++++ '[' nomd5 '!=' 0 ']'
  1945. ++++++ '[' nomd5 '!=' nomd5 ']'
  1946. ++++++ '[' run == run ']'
  1947. ++++++ source /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1948. +++++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1949. ++++++++ basename /home/xtoor/atlasserver/lgsm/functions/info_distro.sh
  1950. +++++++ local function_selfname=info_distro.sh
  1951. ++++++++ uname -m
  1952. +++++++ arch=x86_64
  1953. ++++++++ uname -r
  1954. +++++++ kernel=4.15.0-45-generic
  1955. +++++++ distro_info_array=(os-release lsb_release hostnamectl debian_version redhat-release)
  1956. +++++++ for distro_info in "${distro_info_array[@]}"
  1957. +++++++ '[' -f /etc/os-release ']'
  1958. +++++++ '[' os-release == os-release ']'
  1959. ++++++++ grep PRETTY_NAME /etc/os-release
  1960. ++++++++ sed 's/\"//g'
  1961. ++++++++ tr -d '="'
  1962. ++++++++ sed s/PRETTY_NAME=//g
  1963. +++++++ distroname='Ubuntu 18.04.1 LTS'
  1964. ++++++++ grep VERSION_ID /etc/os-release
  1965. ++++++++ sed 's/\"//g'
  1966. ++++++++ sed s/VERSION_ID=//g
  1967. +++++++ distroversion=18.04
  1968. ++++++++ grep ID /etc/os-release
  1969. ++++++++ sed 's/\"//g'
  1970. ++++++++ sed s/ID=//g
  1971. ++++++++ grep -v ID_
  1972. ++++++++ grep -v _ID
  1973. +++++++ distroid=ubuntu
  1974. ++++++++ grep VERSION_CODENAME /etc/os-release
  1975. ++++++++ sed 's/\"//g'
  1976. ++++++++ sed s/VERSION_CODENAME=//g
  1977. +++++++ distrocodename=bionic
  1978. +++++++ for distro_info in "${distro_info_array[@]}"
  1979. +++++++ '[' -f /etc/os-release ']'
  1980. +++++++ '[' lsb_release == os-release ']'
  1981. ++++++++ command -v lsb_release
  1982. +++++++ '[' -n /usr/bin/lsb_release ']'
  1983. +++++++ '[' lsb_release == lsb_release ']'
  1984. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  1985. +++++++ '[' -z 18.04 ']'
  1986. +++++++ '[' -z ubuntu ']'
  1987. +++++++ '[' -z bionic ']'
  1988. +++++++ for distro_info in "${distro_info_array[@]}"
  1989. +++++++ '[' -f /etc/os-release ']'
  1990. +++++++ '[' hostnamectl == os-release ']'
  1991. ++++++++ command -v lsb_release
  1992. +++++++ '[' -n /usr/bin/lsb_release ']'
  1993. +++++++ '[' hostnamectl == lsb_release ']'
  1994. ++++++++ command -v hostnamectl
  1995. +++++++ '[' -n /usr/bin/hostnamectl ']'
  1996. +++++++ '[' hostnamectl == hostnamectl ']'
  1997. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  1998. +++++++ for distro_info in "${distro_info_array[@]}"
  1999. +++++++ '[' -f /etc/os-release ']'
  2000. +++++++ '[' debian_version == os-release ']'
  2001. ++++++++ command -v lsb_release
  2002. +++++++ '[' -n /usr/bin/lsb_release ']'
  2003. +++++++ '[' debian_version == lsb_release ']'
  2004. ++++++++ command -v hostnamectl
  2005. +++++++ '[' -n /usr/bin/hostnamectl ']'
  2006. +++++++ '[' debian_version == hostnamectl ']'
  2007. +++++++ '[' -f /etc/debian_version ']'
  2008. +++++++ '[' debian_version == debian_version ']'
  2009. +++++++ '[' -z 'Ubuntu 18.04.1 LTS' ']'
  2010. +++++++ '[' -z 18.04 ']'
  2011. +++++++ '[' -z ubuntu ']'
  2012. +++++++ for distro_info in "${distro_info_array[@]}"
  2013. +++++++ '[' -f /etc/os-release ']'
  2014. +++++++ '[' redhat-release == os-release ']'
  2015. ++++++++ command -v lsb_release
  2016. +++++++ '[' -n /usr/bin/lsb_release ']'
  2017. +++++++ '[' redhat-release == lsb_release ']'
  2018. ++++++++ command -v hostnamectl
  2019. +++++++ '[' -n /usr/bin/hostnamectl ']'
  2020. +++++++ '[' redhat-release == hostnamectl ']'
  2021. +++++++ '[' -f /etc/debian_version ']'
  2022. +++++++ '[' redhat-release == debian_version ']'
  2023. +++++++ '[' -f /etc/redhat-release ']'
  2024. ++++++++ ldd --version
  2025. ++++++++ sed -n '1s/.* //p'
  2026. +++++++ glibcversion=2.27
  2027. ++++++++ command -V tmux
  2028. +++++++ '[' -z 'tmux is /usr/bin/tmux' ']'
  2029. ++++++++ tmux -V
  2030. ++++++++ sed 's/tmux //'
  2031. ++++++++ sed -n '1 p'
  2032. ++++++++ tr -cd '[:digit:]'
  2033. +++++++ '[' 26 -lt 16 ']'
  2034. ++++++++ tmux -V
  2035. +++++++ tmuxv='tmux 2.6'
  2036. +++++++ uptime='260471.19 513845.26'
  2037. +++++++ uptime=260471
  2038. +++++++ minutes=21
  2039. +++++++ hours=0
  2040. +++++++ days=3
  2041. ++++++++ uptime
  2042. ++++++++ awk -F 'load average: ' '{ print $2 }'
  2043. +++++++ load='0.16, 0.07, 0.01'
  2044. ++++++++ command -v numfmt
  2045. +++++++ '[' -n /usr/bin/numfmt ']'
  2046. ++++++++ grep MemTotal /proc/meminfo
  2047. ++++++++ awk '{print $2}'
  2048. +++++++ physmemtotalkb=4039372
  2049. ++++++++ grep '^MemFree' /proc/meminfo
  2050. ++++++++ awk '{print $2}'
  2051. +++++++ physmemfreekb=244680
  2052. ++++++++ grep '^Buffers' /proc/meminfo
  2053. ++++++++ awk '{print $2}'
  2054. +++++++ physmembufferskb=525172
  2055. ++++++++ grep '^Cached' /proc/meminfo
  2056. ++++++++ awk '{print $2}'
  2057. +++++++ physmemcachedkb=2532400
  2058. ++++++++ grep '^SReclaimable' /proc/meminfo
  2059. ++++++++ awk '{print $2}'
  2060. +++++++ physmemreclaimablekb=277796
  2061. +++++++ grep -q '^MemAvailable' /proc/meminfo
  2062. ++++++++ grep '^MemAvailable' /proc/meminfo
  2063. ++++++++ awk '{print $2}'
  2064. +++++++ physmemactualfreekb=3288616
  2065. +++++++ physmemtotalmb=3944
  2066. ++++++++ numfmt --to=iec --from=iec --suffix=B 4039372K
  2067. +++++++ physmemtotal=3.9GB
  2068. ++++++++ numfmt --to=iec --from=iec --suffix=B 3288616K
  2069. +++++++ physmemfree=3.2GB
  2070. ++++++++ numfmt --to=iec --from=iec --suffix=B 459324K
  2071. +++++++ physmemused=449MB
  2072. ++++++++ numfmt --to=iec --from=iec --suffix=B 3288616K
  2073. +++++++ physmemavailable=3.2GB
  2074. ++++++++ numfmt --to=iec --from=iec --suffix=B 2810196K
  2075. +++++++ physmemcached=2.7GB
  2076. +++++++++ grep '^SwapTotal' /proc/meminfo
  2077. +++++++++ awk '{print $2}'
  2078. ++++++++ numfmt --to=iec --from=iec --suffix=B 4038652K
  2079. +++++++ swaptotal=3.9GB
  2080. +++++++++ grep '^SwapFree' /proc/meminfo
  2081. +++++++++ awk '{print $2}'
  2082. ++++++++ numfmt --to=iec --from=iec --suffix=B 4038128K
  2083. +++++++ swapfree=3.9GB
  2084. +++++++++ grep '^SwapTotal' /proc/meminfo
  2085. +++++++++ awk '{print $2}'
  2086. +++++++++ grep '^SwapFree' /proc/meminfo
  2087. +++++++++ awk '{print $2}'
  2088. ++++++++ numfmt --to=iec --from=iec --suffix=B 524K
  2089. +++++++ swapused=524KB
  2090. ++++++++ df -hP /home/xtoor/atlasserver
  2091. ++++++++ awk '{print $1}'
  2092. ++++++++ grep -v Filesystem
  2093. +++++++ filesystem=/dev/sda2
  2094. ++++++++ df -hP /home/xtoor/atlasserver
  2095. ++++++++ awk '{print $2}'
  2096. ++++++++ grep -v Filesystem
  2097. +++++++ totalspace=293G
  2098. ++++++++ df -hP /home/xtoor/atlasserver
  2099. ++++++++ awk '{print $3}'
  2100. ++++++++ grep -v Filesystem
  2101. +++++++ usedspace=68G
  2102. ++++++++ df -hP /home/xtoor/atlasserver
  2103. ++++++++ grep -v Filesystem
  2104. ++++++++ awk '{print $4}'
  2105. +++++++ availspace=211G
  2106. ++++++++ du -sh /home/xtoor/atlasserver
  2107. ++++++++ awk '{print $1}'
  2108. +++++++ rootdirdu=320K
  2109. +++++++ '[' -z 320K ']'
  2110. ++++++++ du -sh /home/xtoor/atlasserver/serverfiles
  2111. ++++++++ awk '{print $1}'
  2112. +++++++ serverfilesdu=4.0K
  2113. +++++++ '[' -z 4.0K ']'
  2114. ++++++++ du -sh --exclude= /home/xtoor/atlasserver/serverfiles
  2115. ++++++++ awk '{print $1}'
  2116. +++++++ rootdirduexbackup=4.0K
  2117. +++++++ '[' -z 4.0K ']'
  2118. +++++++ '[' -d '' ']'
  2119. +++++++ '[' -z 72.90.180.15 ']'
  2120. ++++++++ command -v jq
  2121. +++++++ '[' '!' /usr/bin/jq ']'
  2122. ++++++ '[' atlas == ark ']'
  2123. ++++++ '[' atlas == arma3 ']'
  2124. ++++++ '[' atlas == rust ']'
  2125. ++++++ '[' atlas == mc ']'
  2126. ++++++ '[' atlas == pstbs ']'
  2127. ++++++ '[' atlas == ns2 ']'
  2128. ++++++ '[' atlas == ns2c ']'
  2129. ++++++ '[' atlas == st ']'
  2130. ++++++ '[' -n '' ']'
  2131. +++++ whoami
  2132. ++++ '[' xtoor = root ']'
  2133. ++++ install_header.sh
  2134. ++++ functionfile=install_header.sh
  2135. ++++ fn_fetch_function
  2136. ++++ github_file_url_dir=lgsm/functions
  2137. ++++ github_file_url_name=install_header.sh
  2138. ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
  2139. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
  2140. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2141. ++++ local_filename=install_header.sh
  2142. ++++ chmodx=chmodx
  2143. ++++ run=run
  2144. ++++ forcedl=noforce
  2145. ++++ md5=nomd5
  2146. ++++ 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
  2147. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_header.sh
  2148. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2149. ++++ local_filename=install_header.sh
  2150. ++++ chmodx=chmodx
  2151. ++++ run=run
  2152. ++++ forcedl=noforce
  2153. ++++ md5=nomd5
  2154. ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh ']'
  2155. ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  2156. ++++ trap fn_fetch_trap INT
  2157. ++++ '[' sh == bz2 ']'
  2158. ++++ '[' sh == gz ']'
  2159. ++++ '[' sh == zip ']'
  2160. ++++ '[' sh == jar ']'
  2161. ++++ '[' sh == xz ']'
  2162. ++++ echo -en '    fetching install_header.sh...\c'
  2163. +++++ /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
  2164. ++++ curlcmd=
  2165. ++++ local exitcode=0
  2166. ++++ '[' 0 -ne 0 ']'
  2167. ++++ fn_print_ok_eol_nl
  2168. ++++ echo -e '\e[32mOK\e[0m'
  2169. ++++ '[' -f '' ']'
  2170. ++++ trap - INT
  2171. ++++ '[' chmodx == chmodx ']'
  2172. ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_header.sh
  2173. ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh ']'
  2174. ++++ fn_dl_md5
  2175. ++++ '[' nomd5 '!=' 0 ']'
  2176. ++++ '[' nomd5 '!=' nomd5 ']'
  2177. ++++ '[' run == run ']'
  2178. ++++ source /home/xtoor/atlasserver/lgsm/functions/install_header.sh
  2179. +++++ local commandname=INSTALL
  2180. +++++ local commandaction=Install
  2181. +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_header.sh
  2182. ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_header.sh
  2183. +++++ local function_selfname=install_header.sh
  2184. +++++ clear
  2185. +++++ echo =================================
  2186. +++++ echo 'LinuxGSM - '
  2187. +++++ echo 'by Daniel Gibbs'
  2188. +++++ echo 'Website: https://linuxgsm.com'
  2189. +++++ echo 'Contributors: https://linuxgsm.com/contrib'
  2190. +++++ echo 'Donate: https://linuxgsm.com/donate'
  2191. +++++ echo =================================
  2192. ++++ install_server_dir.sh
  2193. ++++ functionfile=install_server_dir.sh
  2194. ++++ fn_fetch_function
  2195. ++++ github_file_url_dir=lgsm/functions
  2196. ++++ github_file_url_name=install_server_dir.sh
  2197. ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
  2198. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
  2199. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2200. ++++ local_filename=install_server_dir.sh
  2201. ++++ chmodx=chmodx
  2202. ++++ run=run
  2203. ++++ forcedl=noforce
  2204. ++++ md5=nomd5
  2205. ++++ 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
  2206. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_server_dir.sh
  2207. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2208. ++++ local_filename=install_server_dir.sh
  2209. ++++ chmodx=chmodx
  2210. ++++ run=run
  2211. ++++ forcedl=noforce
  2212. ++++ md5=nomd5
  2213. ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh ']'
  2214. ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  2215. ++++ trap fn_fetch_trap INT
  2216. ++++ '[' sh == bz2 ']'
  2217. ++++ '[' sh == gz ']'
  2218. ++++ '[' sh == zip ']'
  2219. ++++ '[' sh == jar ']'
  2220. ++++ '[' sh == xz ']'
  2221. ++++ echo -en '    fetching install_server_dir.sh...\c'
  2222. +++++ /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
  2223. ++++ curlcmd=
  2224. ++++ local exitcode=0
  2225. ++++ '[' 0 -ne 0 ']'
  2226. ++++ fn_print_ok_eol_nl
  2227. ++++ echo -e '\e[32mOK\e[0m'
  2228. ++++ '[' -f '' ']'
  2229. ++++ trap - INT
  2230. ++++ '[' chmodx == chmodx ']'
  2231. ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
  2232. ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh ']'
  2233. ++++ fn_dl_md5
  2234. ++++ '[' nomd5 '!=' 0 ']'
  2235. ++++ '[' nomd5 '!=' nomd5 ']'
  2236. ++++ '[' run == run ']'
  2237. ++++ source /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
  2238. +++++ local commandname=INSTALL
  2239. +++++ local commandaction=Install
  2240. +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
  2241. ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_server_dir.sh
  2242. +++++ local function_selfname=install_server_dir.sh
  2243. +++++ echo ''
  2244. +++++ echo 'Server Directory'
  2245. +++++ echo =================================
  2246. +++++ sleep 0.5
  2247. +++++ '[' -d /home/xtoor/atlasserver/serverfiles ']'
  2248. +++++ fn_print_warning_nl 'A server is already installed here.'
  2249. +++++ echo -e '\e[33mWarning!\e[0m A server is already installed here.'
  2250. +++++ pwd
  2251. +++++ echo ''
  2252. +++++ '[' -z '' ']'
  2253. +++++ fn_prompt_yn 'Continue?' Y
  2254. +++++ local 'prompt=Continue?'
  2255. +++++ local initial=Y
  2256. +++++ '[' Y == Y ']'
  2257. +++++ prompt+=' [Y/n] '
  2258. +++++ true
  2259. +++++ read -e -i Y -p 'Continue? [Y/n] ' -r yn
  2260. +++++ case "${yn}" in
  2261. +++++ return 0
  2262. +++++ '[' '!' -d /home/xtoor/atlasserver/serverfiles ']'
  2263. ++++ install_logs.sh
  2264. ++++ functionfile=install_logs.sh
  2265. ++++ fn_fetch_function
  2266. ++++ github_file_url_dir=lgsm/functions
  2267. ++++ github_file_url_name=install_logs.sh
  2268. ++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
  2269. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
  2270. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2271. ++++ local_filename=install_logs.sh
  2272. ++++ chmodx=chmodx
  2273. ++++ run=run
  2274. ++++ forcedl=noforce
  2275. ++++ md5=nomd5
  2276. ++++ 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
  2277. ++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/install_logs.sh
  2278. ++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2279. ++++ local_filename=install_logs.sh
  2280. ++++ chmodx=chmodx
  2281. ++++ run=run
  2282. ++++ forcedl=noforce
  2283. ++++ md5=nomd5
  2284. ++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh ']'
  2285. ++++ '[' '!' -d /home/xtoor/atlasserver/lgsm/functions ']'
  2286. ++++ trap fn_fetch_trap INT
  2287. ++++ '[' sh == bz2 ']'
  2288. ++++ '[' sh == gz ']'
  2289. ++++ '[' sh == zip ']'
  2290. ++++ '[' sh == jar ']'
  2291. ++++ '[' sh == xz ']'
  2292. ++++ echo -en '    fetching install_logs.sh...\c'
  2293. +++++ /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
  2294. ++++ curlcmd=
  2295. ++++ local exitcode=0
  2296. ++++ '[' 0 -ne 0 ']'
  2297. ++++ fn_print_ok_eol_nl
  2298. ++++ echo -e '\e[32mOK\e[0m'
  2299. ++++ '[' -f '' ']'
  2300. ++++ trap - INT
  2301. ++++ '[' chmodx == chmodx ']'
  2302. ++++ chmod +x /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
  2303. ++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh ']'
  2304. ++++ fn_dl_md5
  2305. ++++ '[' nomd5 '!=' 0 ']'
  2306. ++++ '[' nomd5 '!=' nomd5 ']'
  2307. ++++ '[' run == run ']'
  2308. ++++ source /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
  2309. +++++ local commandname=INSTALL
  2310. +++++ local commandaction=Install
  2311. +++++++ readlink -f /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
  2312. ++++++ basename /home/xtoor/atlasserver/lgsm/functions/install_logs.sh
  2313. +++++ local function_selfname=install_logs.sh
  2314. +++++ '[' '' '!=' 1 ']'
  2315. +++++ echo ''
  2316. +++++ echo 'Creating log directories'
  2317. +++++ echo =================================
  2318. +++++ sleep 0.5
  2319. +++++ echo -en 'installing log dir: /home/xtoor/atlasserver/log...'
  2320. +++++ mkdir -p /home/xtoor/atlasserver/log
  2321. +++++ '[' 0 -ne 0 ']'
  2322. +++++ fn_print_ok_eol_nl
  2323. +++++ echo -e '\e[32mOK\e[0m'
  2324. +++++ echo -en 'installing LinuxGSM log dir: /home/xtoor/atlasserver/log/lgsm...'
  2325. +++++ mkdir -p /home/xtoor/atlasserver/log/lgsm
  2326. +++++ '[' 0 -ne 0 ']'
  2327. +++++ fn_print_ok_eol_nl
  2328. +++++ echo -e '\e[32mOK\e[0m'
  2329. +++++ echo -en 'creating LinuxGSM log: ...'
  2330. +++++ touch ''
  2331. +++++ '[' 1 -ne 0 ']'
  2332. +++++ fn_print_fail_eol_nl
  2333. +++++ echo -e '\e[31mFAIL\e[0m'
  2334. +++++ core_exit.sh
  2335. +++++ functionfile=core_exit.sh
  2336. +++++ fn_fetch_function
  2337. +++++ github_file_url_dir=lgsm/functions
  2338. +++++ github_file_url_name=core_exit.sh
  2339. +++++ githuburl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
  2340. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
  2341. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2342. +++++ local_filename=core_exit.sh
  2343. +++++ chmodx=chmodx
  2344. +++++ run=run
  2345. +++++ forcedl=noforce
  2346. +++++ md5=nomd5
  2347. +++++ 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
  2348. +++++ remote_fileurl=https://raw.githubusercontent.com/xtoor/LinuxGSM/master/lgsm/functions/core_exit.sh
  2349. +++++ local_filedir=/home/xtoor/atlasserver/lgsm/functions
  2350. +++++ local_filename=core_exit.sh
  2351. +++++ chmodx=chmodx
  2352. +++++ run=run
  2353. +++++ forcedl=noforce
  2354. +++++ md5=nomd5
  2355. +++++ '[' '!' -f /home/xtoor/atlasserver/lgsm/functions/core_exit.sh ']'
  2356. +++++ '[' noforce == forcedl ']'
  2357. +++++ '[' -f /home/xtoor/atlasserver/lgsm/functions/core_exit.sh ']'
  2358. +++++ fn_dl_md5
  2359. +++++ '[' nomd5 '!=' 0 ']'
  2360. +++++ '[' nomd5 '!=' nomd5 ']'
  2361. +++++ '[' run == run ']'
  2362. +++++ source /home/xtoor/atlasserver/lgsm/functions/core_exit.sh
  2363. +++++++ whoami
  2364. ++++++ '[' xtoor == root ']'
  2365. ++++++ '[' -n '' ']'
  2366. ++++++ '[' -n 0 ']'
  2367. ++++++ '[' 0 '!=' 0 ']'
  2368. ++++++ exitcode=0
  2369. ++++++ fn_script_log_pass 'install_logs.sh exiting with code: 0'
  2370. ++++++ '[' -d /home/xtoor/atlasserver/log/lgsm ']'
  2371. ++++++ '[' -n INSTALL ']'
  2372. +++++++ date '+%b %d %H:%M:%S.%3N'
  2373. ++++++ echo -e 'Feb 04 21:25:17.475 atlasserver: INSTALL: PASS: install_logs.sh exiting with code: 0'
  2374. ++++++ exitcode=0
  2375. ++++++ fn_exit_dev_debug
  2376. ++++++ '[' -f /home/xtoor/atlasserver/.dev-debug ']'
  2377. ++++++ echo ''
  2378. ++++++ echo 'install_logs.sh exiting with code: 0'
  2379. ++++++ '[' -f /home/xtoor/atlasserver/dev-debug.log ']'
  2380. ++++++ grep functionfile= /home/xtoor/atlasserver/dev-debug.log
  2381. ++++++ sed s/functionfile=//g
  2382. ++++++ trap - INT
  2383. ++++++ exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement