Skip to content

Commit dbc5ed2

Browse files
author
Kristan Kenney
committed
Update webmail file paths
1 parent fb0d960 commit dbc5ed2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

func/domain.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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/mail.$domain.ssl.conf
637-
echo "include $conf;" > /etc/$1/conf.d/domains/mail.$domain.ssl.conf
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
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/mail.$domain.conf
645+
echo "include $conf;" > /etc/$1/conf.d/domains/webmail.$domain.conf
646646

647647
# Clear old configurations
648648
rm -rf $HOMEDIR/$user/conf/mail/$domain.*

0 commit comments

Comments
 (0)