Prechádzať zdrojové kódy

Update siteurl and home in the database

Girish Ramakrishnan 7 rokov pred
rodič
commit
b75e00a93c
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  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