Fix WordPress install error

This commit is contained in:
VirtuBox
2019-10-12 11:46:11 +02:00
parent dc7ec443ed
commit 9d5072c751
2 changed files with 9 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- `wo secure --auth`
- `wo secure --sshport` not working with default ssh config
- Issues after APT repositories informations changed
- `www` was added to WordPress site url with subdomains [Issue #178](https://github.com/WordOps/WordOps/issues/178)
### v3.9.9.2 - 2019-10-04

View File

@@ -301,10 +301,9 @@ def setupwordpress(self, data, vhostonly=False):
"--dbhost=\'{3}\' "
.format(data['wo_db_name'], wo_wp_prefix,
data['wo_db_user'], data['wo_db_host']) +
"--dbpass=\'{0}\' "
"--extra-php<<PHP \n {1}\nPHP\""
.format(data['wo_db_pass'],
"\n\ndefine(\'WP_DEBUG\', false);"))
"--dbpass= "
"--extra-php<<PHP \n {0}\nPHP\""
.format("\n\ndefine(\'WP_DEBUG\', false);"))
try:
if WOShellExec.cmd_exec(self, "/bin/bash -c \"{0} --allow-root"
.format(WOVar.wo_wpcli_path) +
@@ -335,9 +334,9 @@ def setupwordpress(self, data, vhostonly=False):
"--dbname=\'{0}\' --dbprefix=\'{1}\' --dbhost=\'{2}\' "
.format(data['wo_db_name'],
wo_wp_prefix, data['wo_db_host']) +
"--dbuser=\'{0}\' --dbpass=\'{1}\' "
"--extra-php<<PHP \n {2} {3} {4} \nPHP\""
.format(data['wo_db_user'], data['wo_db_pass'],
"--dbuser=\'{0}\' --dbpass= "
"--extra-php<<PHP \n {1} {2} {3} \nPHP\""
.format(data['wo_db_user'],
"\ndefine(\'WPMU_ACCEL_REDIRECT\',"
" true);",
"\ndefine(\'CONCATENATE_SCRIPTS\',"
@@ -463,7 +462,7 @@ def setupwordpress(self, data, vhostonly=False):
.format(WOVar.wo_wpcli_path) +
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
.format(data['site_name'], wo_wp_user) +
"--admin_password= --admin_email=\'{1}\'"
"--admin_password= --admin_email=\'{0}\'"
.format(wo_wp_email))
try:
if WOShellExec.cmd_exec(
@@ -489,7 +488,7 @@ def setupwordpress(self, data, vhostonly=False):
"core multisite-install "
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
.format(data['site_name'], wo_wp_user) +
"--admin_password= --admin_email=\'{1}\' "
"--admin_password= --admin_email=\'{0}\' "
"{subdomains}"
.format(wo_wp_email,
subdomains='--subdomains'