strip mail. from domain when calling vmail-dovecot-enable.sh
This commit is contained in:
parent
92af4b365b
commit
fba36f1276
|
@ -19,7 +19,7 @@ if [[ -d /var/tmp/letsencrypt/ ]]; then
|
||||||
if [[ "$domain" =~ ^mail.* ]]; then
|
if [[ "$domain" =~ ^mail.* ]]; then
|
||||||
vmaildomain="${domain/mail./}"
|
vmaildomain="${domain/mail./}"
|
||||||
if [[ -d /var/vmail/$vmaildomain ]]; then
|
if [[ -d /var/vmail/$vmaildomain ]]; then
|
||||||
/usr/local/bin/vmail-dovecot-enable.sh -d $domain
|
/usr/local/bin/vmail-dovecot-enable.sh -d $vmaildomain
|
||||||
/usr/local/bin/vhost-enable.sh -d $domain -m VMailHTTPS
|
/usr/local/bin/vhost-enable.sh -d $domain -m VMailHTTPS
|
||||||
fi
|
fi
|
||||||
elif [[ -d /srv/www/$domain ]]; then
|
elif [[ -d /srv/www/$domain ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user