|
@ -302,9 +302,12 @@ def setupwordpress(self, data): |
|
|
data['ee_db_user'], data['ee_db_host'] |
|
|
data['ee_db_user'], data['ee_db_host'] |
|
|
) |
|
|
) |
|
|
+ "--dbpass=\'{0}\' " |
|
|
+ "--dbpass=\'{0}\' " |
|
|
"--extra-php<<PHP \n {1}\nPHP\"" |
|
|
"--extra-php<<PHP \n {1} {redissalt}\nPHP\"" |
|
|
.format(data['ee_db_pass'], |
|
|
.format(data['ee_db_pass'], |
|
|
"\n\ndefine(\'WP_DEBUG\', false);"), |
|
|
"\n\ndefine(\'WP_DEBUG\', false);", |
|
|
|
|
|
redissalt="\n\ndefine( \'WP_CACHE_KEY_SALT\', \'{0}:\' );" |
|
|
|
|
|
.format(ee_domain_name) if data['wpredis'] |
|
|
|
|
|
else ''), |
|
|
log=False |
|
|
log=False |
|
|
) |
|
|
) |
|
|
except CommandExecutionError as e: |
|
|
except CommandExecutionError as e: |
|
@ -333,14 +336,17 @@ def setupwordpress(self, data): |
|
|
.format(data['ee_db_name'], ee_wp_prefix, |
|
|
.format(data['ee_db_name'], ee_wp_prefix, |
|
|
data['ee_db_host']) |
|
|
data['ee_db_host']) |
|
|
+ "--dbuser=\'{0}\' --dbpass=\'{1}\' " |
|
|
+ "--dbuser=\'{0}\' --dbpass=\'{1}\' " |
|
|
"--extra-php<<PHP \n {2} {3} {4}\nPHP\"" |
|
|
"--extra-php<<PHP \n {2} {3} {4} {redissalt}\nPHP\"" |
|
|
.format(data['ee_db_user'], |
|
|
.format(data['ee_db_user'], |
|
|
data['ee_db_pass'], |
|
|
data['ee_db_pass'], |
|
|
"\ndefine(\'WP_ALLOW_MULTISITE\', " |
|
|
"\ndefine(\'WP_ALLOW_MULTISITE\', " |
|
|
"true);", |
|
|
"true);", |
|
|
"\ndefine(\'WPMU_ACCEL_REDIRECT\'," |
|
|
"\ndefine(\'WPMU_ACCEL_REDIRECT\'," |
|
|
" true);", |
|
|
" true);", |
|
|
"\n\ndefine(\'WP_DEBUG\', false);"), |
|
|
"\n\ndefine(\'WP_DEBUG\', false);", |
|
|
|
|
|
redissalt="\n\ndefine( \'WP_CACHE_KEY_SALT\', \'{0}:\' );" |
|
|
|
|
|
.format(ee_domain_name) if data['wpredis'] |
|
|
|
|
|
else ''), |
|
|
log=False |
|
|
log=False |
|
|
) |
|
|
) |
|
|
except CommandExecutionError as e: |
|
|
except CommandExecutionError as e: |
|
|