|
@ -1699,21 +1699,22 @@ class EEStackController(CementBaseController): |
|
|
'operation.') |
|
|
'operation.') |
|
|
ee_prompt = input("Type \"YES\" or \"yes\" to continue [n]: ") |
|
|
ee_prompt = input("Type \"YES\" or \"yes\" to continue [n]: ") |
|
|
if ee_prompt == 'YES' or ee_prompt == 'yes': |
|
|
if ee_prompt == 'YES' or ee_prompt == 'yes': |
|
|
Log.info(self,"Initializing... Please Wait") |
|
|
|
|
|
EERepo.remove(self, repo_url=EEVariables.ee_nginx_dev_repo) |
|
|
|
|
|
if EEAptGet.download_only(self,EEVariables.ee_nginx,EEVariables.ee_nginx_repo,EEVariables.ee_nginx_key): |
|
|
|
|
|
EEService.stop_service(self, 'nginx') |
|
|
EEService.stop_service(self, 'nginx') |
|
|
Log.debug(self, "Removing apt_packages variable of NGINX") |
|
|
Log.debug(self, "Removing apt_packages variable of NGINX") |
|
|
Log.info(self, "Removing packages, please wait...") |
|
|
Log.info(self, "Removing packages, please wait...") |
|
|
EEAptGet.remove(self, EEVariables.ee_nginx_dev) |
|
|
EEAptGet.remove(self, EEVariables.ee_nginx_dev) |
|
|
EEAptGet.auto_remove(self) |
|
|
EEAptGet.auto_remove(self) |
|
|
Log.info(self, "Removing repository for NGINX MAINLINE,") |
|
|
Log.info(self, "Removing repository for NGINX MAINLINE,") |
|
|
|
|
|
EERepo.remove(self, repo_url=EEVariables.ee_nginx_dev_repo) |
|
|
Log.info(self, "Successfully removed packages") |
|
|
Log.info(self, "Successfully removed packages") |
|
|
|
|
|
Log.info(self,"Initializing NGINX Mainline Packages... Please Wait") |
|
|
|
|
|
if EEAptGet.download_only(self,EEVariables.ee_nginx,EEVariables.ee_nginx_repo,EEVariables.ee_nginx_key): |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx |
|
|
else: |
|
|
else: |
|
|
#revert the changes |
|
|
#revert the changes |
|
|
EERepo.add(self, repo_url=EEVariables.ee_nginx_dev_repo) |
|
|
EERepo.add(self, repo_url=EEVariables.ee_nginx_dev_repo) |
|
|
Log.error(self,"Skipped installing NGINX Stable") |
|
|
Log.error(self,"Error installing NGINX Stable\nReverting back to NGINX Mainline ..",False) |
|
|
|
|
|
apt_packages = apt_packages + EEVariables.ee_nginx_dev |
|
|
|
|
|
|
|
|
if self.app.pargs.nginxmainline: |
|
|
if self.app.pargs.nginxmainline: |
|
|
if EEVariables.ee_nginx_dev_repo == None: |
|
|
if EEVariables.ee_nginx_dev_repo == None: |
|
@ -1747,7 +1748,7 @@ class EEStackController(CementBaseController): |
|
|
Log.info(self, "Successfully removed packages") |
|
|
Log.info(self, "Successfully removed packages") |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx_dev |
|
|
apt_packages = apt_packages + EEVariables.ee_nginx_dev |
|
|
else: |
|
|
else: |
|
|
Log.error(self,"Skipped installing NGINX Mainline") |
|
|
Log.error(self,"Skipped installing NGINX Mainline",False) |
|
|
|
|
|
|
|
|
if self.app.pargs.php: |
|
|
if self.app.pargs.php: |
|
|
Log.debug(self, "Setting apt_packages variable for PHP") |
|
|
Log.debug(self, "Setting apt_packages variable for PHP") |
|
|