Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When installing cozy-stack deb package, nginx is a recommended dependency. On Ubuntu, recommended dependencies are installed by default with the package so nginx get installed with cozy-stack. In postinstall script, we reload nginx if we find it installed but in case nginx is installed but not active (not started yet), reload fails and the whole postinst script fail, leaving cozy-stack package in an unconfigured state. To prevent this situation, we now only reload nginx if it is active (running)
- Loading branch information