|
@@ -44,6 +44,7 @@ EOF
|
|
|
$WP plugin install --activate --force /app/code/wp-oauth.zip
|
|
|
|
|
|
$WP plugin install --activate --force /app/code/disable-wordpress-updates.zip
|
|
|
+ $WP plugin install --activate --force /app/code/wp-mail-smtp.zip
|
|
|
|
|
|
$WP option update users_can_register 1
|
|
|
$WP option update wpoa_cloudron_api_enabled 1
|
|
@@ -63,6 +64,14 @@ sed -e "s/define('DB_NAME',.*/define('DB_NAME', '${MYSQL_DATABASE}');/" \
|
|
|
-e "s/define('DB_HOST',.*/define('DB_HOST', '${MYSQL_HOST}');/" \
|
|
|
-i /app/data/wp-config.php # sed -i seems to destroy symlink
|
|
|
|
|
|
+# configure WP mail smtp plugin (smtp_user, smtp_pass can be set when supported)
|
|
|
+$WP option update mailer smtp
|
|
|
+$WP option update mail_from ${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}
|
|
|
+$WP option update mail_from_name ${MAIL_SMTP_USERNAME}
|
|
|
+$WP option update smtp_host ${MAIL_SMTP_SERVER}
|
|
|
+$WP option update smtp_port ${MAIL_SMTP_PORT}
|
|
|
+$WP option update smtp_auth false
|
|
|
+
|
|
|
$WP option update wpoa_cloudron_api_id "${OAUTH_CLIENT_ID}"
|
|
|
$WP option update wpoa_cloudron_api_secret "${OAUTH_CLIENT_SECRET}"
|
|
|
|