|
@ -32,6 +32,8 @@ class EEStackUpgradeController(CementBaseController): |
|
|
dict(help='Upgrade mail scanner stack', action='store_true')), |
|
|
dict(help='Upgrade mail scanner stack', action='store_true')), |
|
|
(['--nginx'], |
|
|
(['--nginx'], |
|
|
dict(help='Upgrade Nginx stack', action='store_true')), |
|
|
dict(help='Upgrade Nginx stack', action='store_true')), |
|
|
|
|
|
(['--nginxmainline'], |
|
|
|
|
|
dict(help='Upgrade Nginx Mainline stack', action='store_true')), |
|
|
(['--php'], |
|
|
(['--php'], |
|
|
dict(help='Upgrade PHP stack', action='store_true')), |
|
|
dict(help='Upgrade PHP stack', action='store_true')), |
|
|
(['--mysql'], |
|
|
(['--mysql'], |
|
@ -139,9 +141,11 @@ class EEStackUpgradeController(CementBaseController): |
|
|
else: |
|
|
else: |
|
|
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 or self.app.pargs.nginxmainline: |
|
|
if EEAptGet.is_installed(self, 'nginx-custom'): |
|
|
if EEAptGet.is_installed(self, 'nginx-custom'): |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx |
|
|
|
|
|
elif EEAptGet.is_installed(self, 'nginx-mainline'): |
|
|
|
|
|
apt_packages = apt_packages + EEVariables.ee_nginx_dev |
|
|
else: |
|
|
else: |
|
|
Log.info(self, "Nginx is not already installed") |
|
|
Log.info(self, "Nginx is not already installed") |
|
|
|
|
|
|
|
|