GameServerManagers / LinuxGSM-Docker

The Official LinuxGSM Docker image (experimental)
https://linuxgsm.com
MIT License
167 stars 74 forks source link

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

Open irobot73 opened 1 year ago

irobot73 commented 1 year ago

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

Pshock13 commented 1 year ago

Looks like this might be related to this issue

irobot73 commented 1 year ago

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