LinuxGSM-Docker icon indicating copy to clipboard operation
LinuxGSM-Docker copied to clipboard

Server commands (7D2D) indicates 'info_game.sh' errors during execution

Open irobot73 opened this issue 2 years ago • 2 comments

Been a bit since I had to mess around but 7D2D A21 dropped this afternoon

Using 'container console' via Porttainer & attempting to utilize some (all?) of the server command indicates an error in the 'info_game.sh' script file

linuxgsm@4e085af0701e:~$ *server start 
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Starting sdtdserver: NOT SET
linuxgsm@4e085af0701e:~$ *server restart
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[ .... ] Stopping sdtdserver: NOT SET/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Stopping sdtdserver: Graceful: telnet: 127.0.0.1:8084 : OK
[  OK  ] Stopping sdtdserver: NOT SET
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Starting sdtdserver: NOT SET
linuxgsm@4e085af0701e:~$ 

Confirmed the game_info is good by running the 'lgsm-update' command (1st couple of rows in the screenshot) Screenshot from 2023-06-12 16-37-17

irobot73 avatar Jun 12 '23 20:06 irobot73

Looks like this might be related to this issue

Pshock13 avatar Jun 13 '23 03:06 Pshock13

Looks like this might be related to this issue

Good catch. Does look like it.

Edit

I did hand-jam the fix noted later in that thread & generating the DETAILS appears to work as expected w/o the errors

Line 134 (escape the inner quotes): eval "${1}=\"$(xmllint --xpath "string(${2})" "${servercfgparse}")\""

Least it's on their radar & doesn't really effect anything

irobot73 avatar Jun 15 '23 00:06 irobot73