Open mohierf opened 7 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!
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 😉
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