factoriommo / factorio-multienv-ctl

Manager for multiple factorio environments on the same machine. Based on https://github.com/Bisa/factorio-init.
MIT License
18 stars 6 forks source link

Add "pre-start" config option #12

Open psihius opened 7 years ago

psihius commented 7 years ago

In our case we reeeeeeeaaaaaaly need to automate our banlist updated from our API with every start/restart of the service. I usually just run this command:

wget https://aerith.ovh/factoriommo/banlist/api/bans.php -O /var/factorio/instances/instance_name/server-banlist.json

Probably should result in something like bellow in the config

wget https://aerith.ovh/factoriommo/banlist/api/bans.php -O ${INSTANCE_PATH}/server-banlist.json
jakimfett commented 7 years ago

Thoughts on running a diff against any existing banlist first, and giving the user the ability to automerge if both have been altered?