Skip to content

Commit c4e301d

Browse files
author
gau1991
committed
Improved Nginx reinstallation
1 parent c7ba0fa commit c4e301d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/cli/plugins/stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def post_pref(self, apt_packages, packages):
155155
EEService.reload_service(self, 'postfix')
156156

157157
if set(EEVariables.ee_nginx).issubset(set(apt_packages)):
158-
if ((not os.path.isfile('/etc/nginx/conf.d/ee-nginx.conf')) and
159-
os.path.isfile('/etc/nginx/nginx.conf')):
158+
if ((not EEShellExec.cmd_exec(self, "grep -Hr EasyEngine "
159+
"/etc/nginx")) and os.path.isfile('/etc/nginx/nginx.conf')):
160160
nc = NginxConfig()
161161
Log.debug(self, 'Loading file /etc/nginx/nginx.conf ')
162162
nc.loadf('/etc/nginx/nginx.conf')

0 commit comments

Comments
 (0)