|
@@ -12,6 +12,7 @@ if [[ -z "$(ls -A /app/data)" ]]; then
|
|
|
rm -rf /app/code/wp-content
|
|
|
ln -sf /app/data/wp-content /app/code/wp-content
|
|
|
|
|
|
+ # this also generates the salt in wp-config.php which must be backed up
|
|
|
$WP core config --dbname="${MYSQL_DATABASE}" --dbuser="${MYSQL_USERNAME}" --dbpass="${MYSQL_PASSWORD}" --dbhost="${MYSQL_HOST}" --extra-php <<EOF
|
|
|
// prevent user from changing the Settings->General, WordPress and Blog address values.
|
|
|
define('WP_HOME', 'https://$(hostname -f)');
|