webmail setup script

This commit is contained in:
Andris Reinman 2018-08-06 09:58:34 +03:00
parent df8d0c701c
commit 27fb30ad6f

View file

@ -32,7 +32,7 @@ mkdir -p /opt/wildduck-webmail
git --git-dir=/var/opt/wildduck-webmail.git --work-tree=/opt/wildduck-webmail checkout "$WEBMAIL_COMMIT"
cp /opt/wildduck-webmail/config/default.toml /etc/wildduck/wildduck-webmail.toml
sed -i -e "s/localhost/$HOSTNAME/g;s/999/99/g;s/2587/587/g;s/proxy=false/proxy=true/g" /etc/wildduck/wildduck-webmail.toml
sed -i -e "s/localhost/$HOSTNAME/g;s/999/99/g;s/2587/587/g;s/proxy=false/proxy=true/g;s/domains=.*/domains=\"[$MAILDOMAIN\"]/g" /etc/wildduck/wildduck-webmail.toml
cd /opt/wildduck-webmail