diff options
author | TomTurnschuh <36013390+TomTurnschuh@users.noreply.github.com> | 2018-09-17 14:47:51 +0300 |
---|---|---|
committer | nacho <nacho@ownyourbits.com> | 2018-09-18 07:15:50 +0300 |
commit | 41f21fad3767f805be6f9672394305ddd8204bff (patch) | |
tree | f886835fe7e57f9a021b85603acbd30f05b24c40 | |
parent | 14203481c4376be54ecef1b74cb1bbdd1740640f (diff) |
Don't overwrite an existing mail_smtpmode, if it is not "PHP"v0.59.15
Overwriting the value `SMTP` is probably not the best idea. `SMTP` settings are done manually as required. They should not be disabled or overwritten.
-rw-r--r-- | changelog.md | 4 | ||||
-rwxr-xr-x | update.sh | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index 85699ace..9d6f9dc4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.59.14](https://github.com/nextcloud/nextcloudpi/commit/c8992cf) (2018-09-18) spDYN: fix misspelled variables +[v0.59.15](https://github.com/nextcloud/nextcloudpi/commit/5498397) (2018-09-17) Don't overwrite an existing mail_smtpmode, if it is not "PHP" + +[v0.59.14](https://github.com/nextcloud/nextcloudpi/commit/1420348) (2018-09-18) spDYN: fix misspelled variables [v0.59.13](https://github.com/nextcloud/nextcloudpi/commit/3479014) (2018-09-15) spDYN: support IPv6 @@ -145,7 +145,10 @@ EOF } # NC14 doesnt support php mail - sudo -u www-data php /var/www/nextcloud/occ config:system:set mail_smtpmode --value="sendmail" + mail_smtpmode=$(sudo -u www-data php /var/www/nextcloud/occ config:system:get mail_smtpmode) + [[ $mail_smtpmode == "php" ]] && { + sudo -u www-data php /var/www/nextcloud/occ config:system:set mail_smtpmode --value="sendmail" + } } # end - only live updates |