From f717467c060ebd04ac8c4917abff6cfd2ab108c5 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Tue, 26 May 2015 14:52:31 +0530 Subject: [PATCH] Updated check for writing Nginx config --- ee/cli/plugins/stack.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 6581b238..d0afc2ec 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -202,8 +202,7 @@ class EEStackController(CementBaseController): EEService.reload_service(self, 'postfix') if set(EEVariables.ee_nginx).issubset(set(apt_packages)): - if ((not EEShellExec.cmd_exec(self, "grep -q -Hr EasyEngine " - "/etc/nginx")) and os.path.isfile('/etc/nginx/nginx.conf')): + if not (os.path.isfile('/etc/nginx/common/wpfc.conf')): data = dict() Log.debug(self, 'Writting the nginx configuration to ' 'file /etc/nginx/conf.d/blockips.conf')