|
@@ -54,8 +54,6 @@ EOF
|
|
else
|
|
else
|
|
rm -rf /app/code/wp-content # upgrades & updates - starting out with existing data
|
|
rm -rf /app/code/wp-content # upgrades & updates - starting out with existing data
|
|
ln -sf /app/data/wp-content /app/code/wp-content
|
|
ln -sf /app/data/wp-content /app/code/wp-content
|
|
-
|
|
|
|
- $WP user update $($WP user get admin --field=ID) --user_pass="${admin_password}"
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
# Settings to be updated on every run
|
|
# Settings to be updated on every run
|
|
@@ -65,6 +63,9 @@ sed -e "s/define('DB_NAME',.*/define('DB_NAME', '${MYSQL_DATABASE}');/" \
|
|
-e "s/define('DB_HOST',.*/define('DB_HOST', '${MYSQL_HOST}');/" \
|
|
-e "s/define('DB_HOST',.*/define('DB_HOST', '${MYSQL_HOST}');/" \
|
|
-i /app/data/wp-config.php # sed -i seems to destroy symlink
|
|
-i /app/data/wp-config.php # sed -i seems to destroy symlink
|
|
|
|
|
|
|
|
+# reset the admin password
|
|
|
|
+$WP user update $($WP user get admin --field=ID) --user_pass="${admin_password}"
|
|
|
|
+
|
|
# configure WP mail smtp plugin (smtp_user, smtp_pass can be set when supported)
|
|
# configure WP mail smtp plugin (smtp_user, smtp_pass can be set when supported)
|
|
$WP option update mailer smtp
|
|
$WP option update mailer smtp
|
|
$WP option update mail_from ${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}
|
|
$WP option update mail_from ${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}
|