Makes owncloud uses Mail variables from ENV

This commit is contained in:
pierreozoux 2015-07-15 16:03:26 +01:00
parent c856454d77
commit 7378152b0f
2 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,12 @@
mailhub=172.17.42.1
root=postmaster
mailhub=##MAIL_HOST##:##MAIL_PORT##
root=##MAIL_USER##
FromLineOverride=YES
# Use SSL/TLS before starting negotiation
UseTLS=Yes
UseSTARTTLS=Yes
# Username/Password
AuthUser=##MAIL_USER##
AuthPass=##MAIL_PASS##

View file

@ -1,4 +1,11 @@
#!/bin/bash -eux
### configure email
sed -i s/##MAIL_HOST##/${MAIL_HOST}/ /etc/ssmtp/ssmtp.conf
sed -i s/##MAIL_PORT##/${MAIL_PORT}/ /etc/ssmtp/ssmtp.conf
sed -i s/##MAIL_USER##/${MAIL_USER}/ /etc/ssmtp/ssmtp.conf
sed -i s/##MAIL_PASS##/${MAIL_PASS}/ /etc/ssmtp/ssmtp.conf
###
# Check Pre Install
###