Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomTurnschuh <36013390+TomTurnschuh@users.noreply.github.com>2018-09-17 14:47:51 +0300
committernacho <nacho@ownyourbits.com>2018-09-18 07:15:50 +0300
commit41f21fad3767f805be6f9672394305ddd8204bff (patch)
treef886835fe7e57f9a021b85603acbd30f05b24c40
parent14203481c4376be54ecef1b74cb1bbdd1740640f (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.md4
-rwxr-xr-xupdate.sh5
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
diff --git a/update.sh b/update.sh
index 35ab8a41..b60720f1 100755
--- a/update.sh
+++ b/update.sh
@@ -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