Fix wp-cli path
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user