nQuake / server-linux

nQuake (QuakeWorld) server for Linux
http://www.nquake.com/
39 stars 14 forks source link

Configs overwritten by start_server #13

Closed liback closed 6 years ago

liback commented 6 years ago

I suggest to make the default behavior to not regenerate config files when running start_servers if they already exist.

liback commented 6 years ago

This seems to already be the case when running the scripts in docker mode, so i'll just go ahead and make the changes for the non-docker script execution as well.

liback commented 6 years ago

For the scripts the following files were deleted in the distfiles in order to generate proper scripts on first start_servers.sh execution after installation (they came default with the old style while() scripts instead of the screen version introduced in #4 ):

sv-gpl.zip /run/qtv.sh /run/qwfwd.sh

liback commented 6 years ago

This gets a bit weird when adding for example an additional FFA port after initial installation as the autogenerated portx.cfg and portx.sh can then get out of sync when the 27500 port gets assigned port1.cfg due to its low number.

liback commented 6 years ago

Possible workaround to last issue might be to name the scripts and configs port\<port>.cfg instead of port\<counter>.cfg?