Alignak-monitoring-contrib / alignak-webui

Web User Interface for Alignak monitoring framework
GNU Affero General Public License v3.0
8 stars 4 forks source link

pip upgrading breaks the former installed configuration #322

Open mohierf opened 6 years ago

mohierf commented 6 years ago

When upgrading the web ui with the pip install alignak-webui --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, logging.dist and uwsgi.dist to be renamed by the end user as settings.cfg, logging.json and uwsgi.ini ... this will avoid deleting a real configuration when upgrading

mohierf commented 6 years ago

Moreover, upgrading is always destroying the existing log files because the /usr/local/var/log/alignak-webui directory is deleted during the uninstall process (same as the configuration files directory).

Currently it does not look possible to interfere with the pip uninstall process and thus avoid files deletion!

mohierf commented 6 years ago

The proposed solution (to be tested). Oon start, the Web UI application:

The problem that is not fixed with this solution is the uwsgi.ini file ... let's assume that the sysadmin will be able to copy an uwsgi.dist file to uwsgi.ini 😉