kaimallea / csgo

A containerized dedicated server for Counter-Strike: Global Offensive
The Unlicense
243 stars 58 forks source link

Fix empty config files after more than one start #54

Closed minusbrain closed 3 years ago

minusbrain commented 3 years ago

sed -i -n introduced in #45 emptied the config files after the second start of the container. Now it does not anymore. If the files are already empty this change also fixes that problem.

Potential fix for #53

kaimallea commented 3 years ago

Hmm, I'm not sure what -n does when used with the s operation. I can't test atm, but based on existing code I used -- https://github.com/kaimallea/csgo/blob/451b38803756ffc0405827a9ae9e379d9dfc1291/containerfs/manage_pugsetup_configs.sh#L15 -- I trust that removing -n should be fine.

kaimallea commented 3 years ago

@minusbrain thank you very much!