Browse Source

Updated configs

bugfixes
gau1991 10 years ago
parent
commit
63c7b154d9
  1. 2
      ee/cli/plugins/site_functions.py
  2. 5
      ee/cli/plugins/stack.py

2
ee/cli/plugins/site_functions.py

@ -608,7 +608,7 @@ def site_package_check(self, stype):
# Check if Nginx is allready installed and Pagespeed config there or not
# If not then copy pagespeed config
if self.app.pargs.pagespeed:
if (os.path.isdir('/etc/nginx') and
if (os.path.isfile('/etc/nginx/nginx.conf') and
(not os.path.isfile('/etc/nginx/conf.d/pagespeed.conf'))):
# Pagespeed configuration
data = dict()

5
ee/cli/plugins/stack.py

@ -624,9 +624,8 @@ class EEStackController(CementBaseController):
EEGit.add(self, ["/etc/hhvm"], msg="Adding HHVM into Git")
EEService.restart_service(self, 'hhvm')
EEService.reload_service(self, 'nginx')
if os.path.isdir("/etc/nginx") and (not
if os.path.isfile("/etc/nginx/nginx.conf") and (not
os.path.isfile("/etc/nginx/common/php-hhvm.conf")):
data = dict()
@ -662,6 +661,8 @@ class EEStackController(CementBaseController):
out=ee_nginx)
ee_nginx.close()
EEService.reload_service(self, 'nginx')
if set(EEVariables.ee_mysql).issubset(set(apt_packages)):
# TODO: Currently we are using, we need to remove it in future
# config = configparser.ConfigParser()

Loading…
Cancel
Save