From 890e81119a57a5a88526529cc1c4de968284d6e3 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 27 Aug 2019 16:10:21 +0200 Subject: [PATCH] Fix rollback --- wo/cli/plugins/stack_pref.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index f821b49..82a5c62 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -489,9 +489,11 @@ def post_pref(self, apt_packages, packages, upgrade=False): if upgrade: try: - WOService.reload_service(self, 'nginx') + WOShellExec.cmd_exec(self, 'nginx -t') except CommandExecutionError as e: Log.debug(self, "{0}".format(e)) + Log.info(self, "Rolling-Back Nginx" + "configuration") WOGit.rollback(self, ["/etc/nginx"]) # Nginx Configation into GIT