Change MySQL backup path

This commit is contained in:
VirtuBox
2019-10-28 09:09:28 +01:00
parent e3558537b8
commit 45252fdd1b
5 changed files with 34 additions and 18 deletions

View File

@@ -75,7 +75,8 @@ class WOCleanController(CementBaseController):
try:
Log.info(self, "Cleaning opcache")
opgui = requests.get(
"https://127.0.0.1:22222/cache/opcache/opgui.php?reset=1")
"https://127.0.0.1:22222/cache/opcache/opgui.php?reset=1",
verify=False)
if opgui.status_code != '200':
Log.warn(self, 'Cleaning opcache failed')
except Exception as e:

View File

@@ -126,12 +126,12 @@ class WOStackUpgradeController(CementBaseController):
if pargs.wpcli:
if os.path.isfile('/usr/local/bin/wp'):
packages = packages + [["https://github.com/wp-cli/wp-cli/"
"releases/download/v{0}/"
"wp-cli-{0}.phar"
"".format(WOVar.wo_wp_cli),
"/usr/local/bin/wp",
"WP-CLI"]]
packages = packages + [[
"https://github.com/wp-cli/wp-cli/"
"releases/download/v{0}/"
"wp-cli-{0}.phar".format(WOVar.wo_wp_cli),
"/usr/local/bin/wp",
"WP-CLI"]]
else:
Log.info(self, "WPCLI is not installed with WordOps")
@@ -168,9 +168,10 @@ class WOStackUpgradeController(CementBaseController):
if pargs.composer:
if os.path.isfile('/usr/local/bin/composer'):
packages = packages + [["https://getcomposer.org/installer",
"/var/lib/wo/tmp/composer-install",
"Composer"]]
packages = packages + [[
"https://getcomposer.org/installer",
"/var/lib/wo/tmp/composer-install",
"Composer"]]
else:
Log.info(self, "Composer isn't installed")