Fix netdata upgrade and install, download latest wp-cli

This commit is contained in:
VirtuBox
2024-05-31 22:22:08 +02:00
parent bf6e4c0887
commit a715ccfd06
5 changed files with 18 additions and 28 deletions

View File

@@ -910,10 +910,7 @@ def site_package_check(self, stype):
if stype in ['wp', 'wpsubdir', 'wpsubdomain']:
Log.debug(self, "Setting packages variable for WP-CLI")
if not WOAptGet.is_exec(self, "wp"):
packages = packages + [["https://github.com/wp-cli/wp-cli/"
"releases/download/v{0}/"
"wp-cli-{0}.phar"
.format(WOVar.wo_wp_cli),
packages = packages + [[f"{WOVar.wpcli_url}",
"/usr/local/bin/wp", "WP-CLI"]]
if pargs.wpredis:
Log.debug(self, "Setting apt_packages variable for redis")