diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 91c61193..0d10d8fb 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -429,7 +429,13 @@ def site_package_check(self, stype): stack.app = self.app if stype in ['html', 'php', 'mysql', 'wp', 'wpsubdir', 'wpsubdomain']: Log.debug(self, "Setting apt_packages variable for Nginx") - if not EEAptGet.is_installed(self, 'nginx-common'): + + if EEVariables.ee_platform_distro == 'Debian': + check_nginx = 'nginx-extras' + else: + check_nginx = 'nginx-Custom' + + if not EEAptGet.is_installed(self, check_nginx): apt_packages = apt_packages + EEVariables.ee_nginx if stype in ['php', 'mysql', 'wp', 'wpsubdir', 'wpsubdomain']: diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 037a5dc5..b2ff665c 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -1343,7 +1343,13 @@ class EEStackController(CementBaseController): if self.app.pargs.nginx: Log.debug(self, "Setting apt_packages variable for Nginx") - if not EEAptGet.is_installed(self, 'nginx-common'): + + if EEVariables.ee_platform_distro == 'Debian': + check_nginx = 'nginx-extras' + else: + check_nginx = 'nginx-Custom' + + if not EEAptGet.is_installed(self, check_nginx): apt_packages = apt_packages + EEVariables.ee_nginx else: Log.debug(self, "Nginx already installed")