Change method for WP_CACHE_KEY_SALT

This commit is contained in:
VirtuBox
2019-06-15 13:14:08 +02:00
parent f57856f41d
commit a3b861f515

View File

@@ -328,6 +328,11 @@ def setupwordpress(self, data):
except CommandExecutionError as e: except CommandExecutionError as e:
raise SiteError("generate wp-config failed for wp single site") raise SiteError("generate wp-config failed for wp single site")
WOShellExec.cmd_exec(self, "bash -c \"php {0} --allow-root "
.format(WOVariables.wo_wpcli_path) +
"config set WP_CACHE_KEY_SALT "
"\'{0}:\'".format(wo_domain_name))
else: else:
Log.debug(self, "Generating wp-config for WordPress multisite") Log.debug(self, "Generating wp-config for WordPress multisite")
Log.debug(self, "bash -c \"php {0} --allow-root " Log.debug(self, "bash -c \"php {0} --allow-root "