Prechádzať zdrojové kódy

Preserve mail from name across updates

Girish Ramakrishnan 7 rokov pred
rodič
commit
88a7aa0cc4
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      start.sh

+ 4 - 1
start.sh

@@ -120,7 +120,10 @@ fi
 echo "Configuring smtp mail"
 $WP option update mailer smtp
 $WP option update mail_from "${MAIL_FROM}"
-$WP option update mail_from_name WordPress
+# Let user customize the mail from name
+if ! $WP option get mail_from_name; then
+    $WP option update mail_from_name WordPress
+fi
 $WP option update smtp_host ${MAIL_SMTP_SERVER}
 $WP option update smtp_port ${MAIL_SMTP_PORT}
 $WP option update smtp_auth true