update nginx-build
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user