Browse Source

Improved Nginx reinstallation

bugfixes
gau1991 10 years ago
parent
commit
c4e301d106
  1. 4
      ee/cli/plugins/stack.py

4
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')

Loading…
Cancel
Save