OpenFactorioServerManager / factorio-server-manager

A tool to help manage Factorio multiplayer servers including mods and save games.
MIT License
541 stars 130 forks source link

Open conf.json in RDONLY when we only need to read it #269

Closed zofrex closed 3 years ago

zofrex commented 3 years ago

With this change, if conf.json contains all required fields (e.g. doesn't need writing to to set the rcon password etc) then factorio-server-manager will launch even if conf.json is read-only.

Without this change, it fails to start, with:

panic: Error loading config file.: open /opt/factorio-server-manager/conf.json: permission denied
mroote commented 3 years ago

Thanks!