Browse Source

Removed unwanted checks as now we are using same package on Debian and Ubuntu

release/v3.3.0
gau1991 10 years ago
parent
commit
9b5adb526a
  1. 7
      ee/cli/plugins/site_functions.py
  2. 7
      ee/cli/plugins/stack.py
  3. 35
      ee/cli/plugins/stack_services.py
  4. 7
      ee/cli/plugins/stack_upgrade.py

7
ee/cli/plugins/site_functions.py

@ -560,12 +560,7 @@ def site_package_check(self, stype):
'wpsubdomain']: 'wpsubdomain']:
Log.debug(self, "Setting apt_packages variable for Nginx") Log.debug(self, "Setting apt_packages variable for Nginx")
if EEVariables.ee_platform_distro == 'debian': if not EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if not EEAptGet.is_installed(self, check_nginx):
apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_nginx
else: else:
# Fix for Nginx white screen death # Fix for Nginx white screen death

7
ee/cli/plugins/stack.py

@ -1442,12 +1442,7 @@ class EEStackController(CementBaseController):
if self.app.pargs.nginx: if self.app.pargs.nginx:
Log.debug(self, "Setting apt_packages variable for Nginx") Log.debug(self, "Setting apt_packages variable for Nginx")
if EEVariables.ee_platform_distro == 'debian': if not EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if not EEAptGet.is_installed(self, check_nginx):
apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_nginx
else: else:
Log.debug(self, "Nginx already installed") Log.debug(self, "Nginx already installed")

35
ee/cli/plugins/stack_services.py

@ -34,12 +34,7 @@ class EEStackStatusController(CementBaseController):
self.app.pargs.hhvm = True self.app.pargs.hhvm = True
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
services = services + ['nginx'] services = services + ['nginx']
else: else:
Log.info(self, "Nginx is not installed") Log.info(self, "Nginx is not installed")
@ -105,12 +100,7 @@ class EEStackStatusController(CementBaseController):
self.app.pargs.hhvm = True self.app.pargs.hhvm = True
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
services = services + ['nginx'] services = services + ['nginx']
else: else:
Log.info(self, "Nginx is not installed") Log.info(self, "Nginx is not installed")
@ -176,12 +166,7 @@ class EEStackStatusController(CementBaseController):
self.app.pargs.hhvm = True self.app.pargs.hhvm = True
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
services = services + ['nginx'] services = services + ['nginx']
else: else:
Log.info(self, "Nginx is not installed") Log.info(self, "Nginx is not installed")
@ -247,12 +232,7 @@ class EEStackStatusController(CementBaseController):
self.app.pargs.hhvm = True self.app.pargs.hhvm = True
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
services = services + ['nginx'] services = services + ['nginx']
else: else:
Log.info(self, "Nginx is not installed") Log.info(self, "Nginx is not installed")
@ -317,12 +297,7 @@ class EEStackStatusController(CementBaseController):
self.app.pargs.postfix = True self.app.pargs.postfix = True
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
services = services + ['nginx'] services = services + ['nginx']
else: else:
Log.info(self, "Nginx is not installed") Log.info(self, "Nginx is not installed")

7
ee/cli/plugins/stack_upgrade.py

@ -140,12 +140,7 @@ class EEStackUpgradeController(CementBaseController):
Log.info(self, "Mail server is not installed") Log.info(self, "Mail server is not installed")
if self.app.pargs.nginx: if self.app.pargs.nginx:
if EEVariables.ee_platform_distro == 'debian': if EEAptGet.is_installed(self, 'nginx-custom'):
check_nginx = 'nginx-extras'
else:
check_nginx = 'nginx-custom'
if EEAptGet.is_installed(self, check_nginx):
apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_nginx
else: else:
Log.info(self, "Nginx is not already installed") Log.info(self, "Nginx is not already installed")

Loading…
Cancel
Save