Fix wp-cli path

This commit is contained in:
VirtuBox
2019-11-05 17:51:44 +01:00
parent a96baa05f4
commit e0165a7312
2 changed files with 13 additions and 8 deletions

View File

@@ -8,10 +8,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### v3.9.x - [Unreleased] ### v3.9.x - [Unreleased]
#### Added
- [STACK] nanorc syntax highlighting for nano editor : `--nanorc`
#### Fixed #### Fixed
- Import rtCamp:EasyEngine GPG key to avoid issues with previous nginx repository - Import rtCamp:EasyEngine GPG key to avoid issues with previous nginx repository
- Unable to issue certificate for a domain if a subdomain certificate exist - Unable to issue certificate for a domain if a subdomain certificate exist
- Incorrect WP-CLI path site_url_https function
### v3.10.1 - 2019-10-30 ### v3.10.1 - 2019-10-30

View File

@@ -63,7 +63,7 @@ class SSL:
self, '{0}/htdocs/'.format(wo_site_webroot)) self, '{0}/htdocs/'.format(wo_site_webroot))
if WOShellExec.cmd_exec( if WOShellExec.cmd_exec(
self, "{0} --allow-root core is-installed" self, "{0} --allow-root core is-installed"
.format(WOVar.wo_wp_cli)): .format(WOVar.wo_wpcli_path)):
wo_siteurl = ( wo_siteurl = (
WOShellExec.cmd_exec_stdout( WOShellExec.cmd_exec_stdout(
self, "{0} option get siteurl " self, "{0} option get siteurl "
@@ -75,17 +75,17 @@ class SSL:
try: try:
WOShellExec.cmd_exec( WOShellExec.cmd_exec(
self, "{0} option update siteurl " self, "{0} option update siteurl "
"\'https://{1}\' --allow-root".format( "\'https://{1}\' --allow-root"
WOVar.wo_wpcli_path, domain)) .format(WOVar.wo_wpcli_path, domain))
WOShellExec.cmd_exec( WOShellExec.cmd_exec(
self, "{0} option update home " self, "{0} option update home "
"\'https://{1}\' --allow-root".format( "\'https://{1}\' --allow-root"
WOVar.wo_wpcli_path, domain)) .format(WOVar.wo_wpcli_path, domain))
WOShellExec.cmd_exec( WOShellExec.cmd_exec(
self, "{0} search-replace \'http://{0}\'" self, "{0} search-replace \'http://{1}\'"
"\'https://{0}\' --skip-columns=guid " "\'https://{1}\' --skip-columns=guid "
"--skip-tables=wp_users" "--skip-tables=wp_users"
.format(domain)) .format(WOVar.wo_wpcli_path, domain))
except Exception as e: except Exception as e:
Log.debug(self, str(e)) Log.debug(self, str(e))
Log.failed(self, "Updating site url with https") Log.failed(self, "Updating site url with https")