update nginx-build

This commit is contained in:
VirtuBox
2019-03-10 18:45:32 +01:00
parent 17b69ae306
commit a58f157e70
4 changed files with 27 additions and 17 deletions

View File

@@ -151,7 +151,14 @@ class WOStackController(CementBaseController):
Log.info(self, "Adding repository for NGINX, please wait...")
WORepo.add(self, repo_url=WOVariables.wo_nginx_repo)
Log.debug(self, 'Adding ppa of Nginx')
WORepo.add_key(self, WOVariables.wo_nginx_key)
try:
WOShellExec.cmd_exec(self, "wget -qO - https://build"
".opensuse.org/"
"projects/home:virtubox/public_key"
" | sudo apt-key add -", log=False)
except CommandExecutionError as e:
Log.error("Failed to add Nginx repository key")
if (WOVariables.wo_platform_distro == 'ubuntu'):
if set(WOVariables.wo_php73).issubset(set(apt_packages)) \
@@ -226,7 +233,7 @@ class WOStackController(CementBaseController):
"add_header")
WOFileUtils.searchreplace(self, "/etc/nginx/nginx.conf",
"\"EasyEngine\"",
"\"WordOps\"",
"\"WordOps v{0}\""
.format(WOVariables.wo_version))
WOFileUtils.searchreplace(self, '/etc/nginx/nginx.conf',