Skip to content
Snippets Groups Projects
Commit 7378152b authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Makes owncloud uses Mail variables from ENV

parent c856454d
No related branches found
No related tags found
No related merge requests found
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##
#!/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
###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment