Browse Source

do not install nginx-custom if nginx-plus installed

feature/refactor-php
harshadyeola 10 years ago
parent
commit
22f547d4d7
  1. 5
      ee/cli/plugins/site_functions.py
  2. 8
      ee/cli/plugins/stack.py

5
ee/cli/plugins/site_functions.py

@ -661,9 +661,10 @@ def site_package_check(self, stype):
if EEAptGet.is_installed(self, 'nginx-plus'):
# do something
# do post nginx installation configuration
print("NGINX-PLUS detected ...")
Log.info(self, "NGINX PLUS Detected ...")
Log.info(self,
"Installing EasyEngine Configurations for NGINX PLUS")
apt = ["nginx-plus"] + EEVariables.ee_nginx
packages = []
#apt_packages = apt_packages + EEVariables.ee_nginx
stack.post_pref(apt, packages)

8
ee/cli/plugins/stack.py

@ -1605,7 +1605,15 @@ class EEStackController(CementBaseController):
Log.debug(self, "Setting apt_packages variable for Nginx")
if not EEAptGet.is_installed(self, 'nginx-custom'):
if not EEAptGet.is_installed(self, 'nginx-plus'):
apt_packages = apt_packages + EEVariables.ee_nginx
else:
Log.info(self, "NGINX PLUS Detected ...")
Log.info(self,
"Installing EasyEngine Configurations for NGINX PLUS")
apt = ["nginx-plus"] + EEVariables.ee_nginx
#apt_packages = apt_packages + EEVariables.ee_nginx
self.post_pref(apt, packages)
else:
Log.debug(self, "Nginx already installed")
Log.info(self, "Nginx already installed")

Loading…
Cancel
Save