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