Alignak-monitoring-contrib / alignak-backend

Backend for alignak (REST API for configuration, retention, livestate, logs) based on Python Eve
GNU Affero General Public License v3.0
11 stars 4 forks source link

pip upgrading the backend deletes the former configuration #423

Open mohierf opened 7 years ago

mohierf commented 7 years ago

When upgrading the backend with the pip install alignak-backend --upgrade the former configuration is replaced with the default shipped configuration.

This is the drawbacks of pip distributing this application :/

Perharps we should ship settings.dist and uwsgi.dist to be renamed by the end user as settings.json and uwsgi.ini ... this will avoid deleting a real configuration when upgrading

algorys commented 6 years ago

@mohierf

I think something like: settings.json.sample and uwsgi.ini.sample (or example if you prefer) will be more understandable.

If the user discovers alignak, he will need to know if the file is an INI file or a JSON file.