Fix WordPress install error
This commit is contained in:
@@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- `wo secure --auth`
|
- `wo secure --auth`
|
||||||
- `wo secure --sshport` not working with default ssh config
|
- `wo secure --sshport` not working with default ssh config
|
||||||
- Issues after APT repositories informations changed
|
- 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
|
### v3.9.9.2 - 2019-10-04
|
||||||
|
|
||||||
|
|||||||
@@ -301,10 +301,9 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
"--dbhost=\'{3}\' "
|
"--dbhost=\'{3}\' "
|
||||||
.format(data['wo_db_name'], wo_wp_prefix,
|
.format(data['wo_db_name'], wo_wp_prefix,
|
||||||
data['wo_db_user'], data['wo_db_host']) +
|
data['wo_db_user'], data['wo_db_host']) +
|
||||||
"--dbpass=\'{0}\' "
|
"--dbpass= "
|
||||||
"--extra-php<<PHP \n {1}\nPHP\""
|
"--extra-php<<PHP \n {0}\nPHP\""
|
||||||
.format(data['wo_db_pass'],
|
.format("\n\ndefine(\'WP_DEBUG\', false);"))
|
||||||
"\n\ndefine(\'WP_DEBUG\', false);"))
|
|
||||||
try:
|
try:
|
||||||
if WOShellExec.cmd_exec(self, "/bin/bash -c \"{0} --allow-root"
|
if WOShellExec.cmd_exec(self, "/bin/bash -c \"{0} --allow-root"
|
||||||
.format(WOVar.wo_wpcli_path) +
|
.format(WOVar.wo_wpcli_path) +
|
||||||
@@ -335,9 +334,9 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
"--dbname=\'{0}\' --dbprefix=\'{1}\' --dbhost=\'{2}\' "
|
"--dbname=\'{0}\' --dbprefix=\'{1}\' --dbhost=\'{2}\' "
|
||||||
.format(data['wo_db_name'],
|
.format(data['wo_db_name'],
|
||||||
wo_wp_prefix, data['wo_db_host']) +
|
wo_wp_prefix, data['wo_db_host']) +
|
||||||
"--dbuser=\'{0}\' --dbpass=\'{1}\' "
|
"--dbuser=\'{0}\' --dbpass= "
|
||||||
"--extra-php<<PHP \n {2} {3} {4} \nPHP\""
|
"--extra-php<<PHP \n {1} {2} {3} \nPHP\""
|
||||||
.format(data['wo_db_user'], data['wo_db_pass'],
|
.format(data['wo_db_user'],
|
||||||
"\ndefine(\'WPMU_ACCEL_REDIRECT\',"
|
"\ndefine(\'WPMU_ACCEL_REDIRECT\',"
|
||||||
" true);",
|
" true);",
|
||||||
"\ndefine(\'CONCATENATE_SCRIPTS\',"
|
"\ndefine(\'CONCATENATE_SCRIPTS\',"
|
||||||
@@ -463,7 +462,7 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
.format(WOVar.wo_wpcli_path) +
|
.format(WOVar.wo_wpcli_path) +
|
||||||
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
|
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
|
||||||
.format(data['site_name'], wo_wp_user) +
|
.format(data['site_name'], wo_wp_user) +
|
||||||
"--admin_password= --admin_email=\'{1}\'"
|
"--admin_password= --admin_email=\'{0}\'"
|
||||||
.format(wo_wp_email))
|
.format(wo_wp_email))
|
||||||
try:
|
try:
|
||||||
if WOShellExec.cmd_exec(
|
if WOShellExec.cmd_exec(
|
||||||
@@ -489,7 +488,7 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
"core multisite-install "
|
"core multisite-install "
|
||||||
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
|
"--url=\'{0}\' --title=\'{0}\' --admin_name=\'{1}\' "
|
||||||
.format(data['site_name'], wo_wp_user) +
|
.format(data['site_name'], wo_wp_user) +
|
||||||
"--admin_password= --admin_email=\'{1}\' "
|
"--admin_password= --admin_email=\'{0}\' "
|
||||||
"{subdomains}"
|
"{subdomains}"
|
||||||
.format(wo_wp_email,
|
.format(wo_wp_email,
|
||||||
subdomains='--subdomains'
|
subdomains='--subdomains'
|
||||||
|
|||||||
Reference in New Issue
Block a user