File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ add_webmail_config() {
600600 ssl_pem=" $HOMEDIR /$user /conf/mail/$domain /ssl/$domain .pem"
601601 ssl_ca=" $HOMEDIR /$user /conf/mail/$domain /ssl/$domain .ca"
602602
603- cat $MAILTPL /$1 /$WEB_BACKEND / $ 2 | \
603+ cat $MAILTPL /$1 /$2 | \
604604 sed -e " s|%ip%|$local_ip |g" \
605605 -e " s|%domain%|$WEBMAIL_ALIAS .$domain |g" \
606606 -e " s|%domain_idn%|$domain_idn |g" \
@@ -633,16 +633,16 @@ add_webmail_config() {
633633 chmod 640 $conf
634634
635635 if [[ " $2 " =~ stpl$ ]]; then
636- rm -f /etc/$1 /conf.d/domains/webmail .$domain .ssl.conf
637- echo " include $conf ;" > /etc/$1 /conf.d/domains/webmail .$domain .ssl.conf
636+ rm -f /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
637+ echo " include $conf ;" > /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
638638
639639 # Clear old configurations
640640 rm -rf $HOMEDIR /$user /conf/mail/$domain .*
641641 rm -rf $HOMEDIR /$user /conf/mail/ssl.$domain .*
642642 rm -rf $HOMEDIR /$user /conf/mail/* nginx.$domain .*
643643 else
644644 rm -f /etc/$1 /conf.d/domains/mail.$domain .conf
645- echo " include $conf ;" > /etc/$1 /conf.d/domains/webmail .$domain .conf
645+ echo " include $conf ;" > /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .conf
646646
647647 # Clear old configurations
648648 rm -rf $HOMEDIR /$user /conf/mail/$domain .*
You can’t perform that action at this time.
0 commit comments