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

Leave a note why wp-config is not generated from scratch each time

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

+ 1 - 0
start.sh

@@ -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)');