Fix rollback
This commit is contained in:
@@ -489,9 +489,11 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
|
|
||||||
if upgrade:
|
if upgrade:
|
||||||
try:
|
try:
|
||||||
WOService.reload_service(self, 'nginx')
|
WOShellExec.cmd_exec(self, 'nginx -t')
|
||||||
except CommandExecutionError as e:
|
except CommandExecutionError as e:
|
||||||
Log.debug(self, "{0}".format(e))
|
Log.debug(self, "{0}".format(e))
|
||||||
|
Log.info(self, "Rolling-Back Nginx"
|
||||||
|
"configuration")
|
||||||
WOGit.rollback(self, ["/etc/nginx"])
|
WOGit.rollback(self, ["/etc/nginx"])
|
||||||
|
|
||||||
# Nginx Configation into GIT
|
# Nginx Configation into GIT
|
||||||
|
|||||||
Reference in New Issue
Block a user