File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ add_webmail_config() {
633633 chown root:$user $conf
634634 chmod 640 $conf
635635
636- if [[ " $2 " =~ stpl$ ] ]; then
636+ if [ " $2 " = " default. stpl" ]; then
637637 if [ ! -z " $WEB_SYSTEM " ]; then
638638 rm -f /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
639639 ln -s $conf /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
@@ -642,7 +642,6 @@ add_webmail_config() {
642642 rm -f /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
643643 ln -s $conf /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .ssl.conf
644644 fi
645-
646645 # Clear old configurations
647646 rm -rf $HOMEDIR /$user /conf/mail/$domain .*
648647 rm -rf $HOMEDIR /$user /conf/mail/ssl.$domain .*
@@ -656,7 +655,6 @@ add_webmail_config() {
656655 rm -f /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .conf
657656 ln -s $conf /etc/$1 /conf.d/domains/$WEBMAIL_ALIAS .$domain .conf
658657 fi
659-
660658 # Clear old configurations
661659 rm -rf $HOMEDIR /$user /conf/mail/$domain .*
662660 fi
You can’t perform that action at this time.
0 commit comments