|
@ -186,9 +186,9 @@ def setupwordpress(self, data): |
|
|
+ "--dbpass={0}" |
|
|
+ "--dbpass={0}" |
|
|
"--extra-php<<PHP \n {1}\nPHP\'" |
|
|
"--extra-php<<PHP \n {1}\nPHP\'" |
|
|
.format(data['ee_db_pass'], |
|
|
.format(data['ee_db_pass'], |
|
|
"\n \ndefine('WP_DEBUG', false);") |
|
|
"\n \ndefine(\'WP_DEBUG\', false);") |
|
|
) |
|
|
) |
|
|
|
|
|
else: |
|
|
Log.debug(self, "Generating wp-config for WordPress multisite") |
|
|
Log.debug(self, "Generating wp-config for WordPress multisite") |
|
|
EEShellExec.cmd_exec(self, "bash -c \'php /usr/bin/wp --allow-root " |
|
|
EEShellExec.cmd_exec(self, "bash -c \'php /usr/bin/wp --allow-root " |
|
|
+ "core config " |
|
|
+ "core config " |
|
@ -197,9 +197,10 @@ def setupwordpress(self, data): |
|
|
+ "--dbuser={0} --dbpass={1} " |
|
|
+ "--dbuser={0} --dbpass={1} " |
|
|
"--extra-php<<PHP \n {2} {3} {4}\nPHP\'" |
|
|
"--extra-php<<PHP \n {2} {3} {4}\nPHP\'" |
|
|
.format(data['ee_db_user'], data['ee_db_pass'], |
|
|
.format(data['ee_db_user'], data['ee_db_pass'], |
|
|
"\n define('WP_ALLOW_MULTISITE', true);", |
|
|
"\ndefine(\'WP_ALLOW_MULTISITE\', true);", |
|
|
"\n define('WPMU_ACCEL_REDIRECT', true);", |
|
|
"\ndefine(\'WPMU_ACCEL_REDIRECT\'," |
|
|
"\n \ndefine('WP_DEBUG', false);") |
|
|
" true);", |
|
|
|
|
|
"\n\ndefine(\'WP_DEBUG\', false);") |
|
|
) |
|
|
) |
|
|
EEFileUtils.mvfile(self, os.getcwd()+'/wp-config.php', |
|
|
EEFileUtils.mvfile(self, os.getcwd()+'/wp-config.php', |
|
|
os.path.abspath(os.path.join(os.getcwd(), os.pardir))) |
|
|
os.path.abspath(os.path.join(os.getcwd(), os.pardir))) |
|
|