|
@@ -94,6 +94,12 @@ else
|
|
|
echo "Plugins already unpacked from previous run" # restarts
|
|
|
fi
|
|
|
|
|
|
+echo "Updating domain related settings"
|
|
|
+# Note that wp-config already sets WP_HOME and WP_SITEURL and the values in db below are ignored
|
|
|
+# This is only done for keeping the db dumps more useful
|
|
|
+$WP option update siteurl "${APP_ORIGIN}"
|
|
|
+$WP option update home "${APP_ORIGIN}"
|
|
|
+
|
|
|
# configure WP mail smtp plugin (smtp_user, smtp_pass can be set when supported)
|
|
|
echo "Configuring smtp mail"
|
|
|
$WP option update mailer smtp
|