Преглед изворни кода

Update siteurl and home in the database

Girish Ramakrishnan пре 7 година
родитељ
комит
b75e00a93c
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      start.sh

+ 6 - 0
start.sh

@@ -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