Add Nginx configuration Rollback

This commit is contained in:
VirtuBox
2019-08-27 15:12:01 +02:00
parent 5cc1c06e88
commit d24ae7e8d2
7 changed files with 199 additions and 162 deletions

View File

@@ -184,7 +184,7 @@ class WOStackUpgradeController(CementBaseController):
Log.error(self, "Not starting package update")
Log.info(self, "Updating APT packages, please wait...")
if set(WOVariables.wo_nginx).issubset(set(apt_packages)):
pre_pref(self, nginx_packages)
pre_pref(self, ["nginx-custom", "nginx-wo"])
# apt-get update
WOAptGet.update(self)
if set(WOVariables.wo_php).issubset(set(apt_packages)):
@@ -195,7 +195,7 @@ class WOStackUpgradeController(CementBaseController):
auto=False, purge=True)
# Update packages
WOAptGet.install(self, apt_packages)
post_pref(self, apt_packages, empty_packages)
post_pref(self, apt_packages, empty_packages, True)
# Post Actions after package updates
if len(packages):