From c4e301d106ecfff859b02231b6a7f392e8ea72d2 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 13 Feb 2015 13:46:39 +0530 Subject: [PATCH] Improved Nginx reinstallation --- ee/cli/plugins/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 56535fb1..1d3fff20 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -155,8 +155,8 @@ class EEStackController(CementBaseController): EEService.reload_service(self, 'postfix') if set(EEVariables.ee_nginx).issubset(set(apt_packages)): - if ((not os.path.isfile('/etc/nginx/conf.d/ee-nginx.conf')) and - os.path.isfile('/etc/nginx/nginx.conf')): + if ((not EEShellExec.cmd_exec(self, "grep -Hr EasyEngine " + "/etc/nginx")) and os.path.isfile('/etc/nginx/nginx.conf')): nc = NginxConfig() Log.debug(self, 'Loading file /etc/nginx/nginx.conf ') nc.loadf('/etc/nginx/nginx.conf')