Skip to content

Commit c71e190

Browse files
author
Kristan Kenney
committed
Update domain.sh
1 parent 5a0d2de commit c71e190

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

func/domain.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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/$WEB_BACKEND/$2 | \
604604
sed -e "s|%ip%|$local_ip|g" \
605605
-e "s|%domain%|$domain|g" \
606606
-e "s|%domain_idn%|$domain_idn|g" \
@@ -651,13 +651,6 @@ add_webmail_config() {
651651
if [ "$1" != 'nginx' ]; then
652652
find /etc/$1/conf.d/domains -type f -name "$domain.*" | xargs sed -i "s/;//g"
653653
fi
654-
655-
trigger="${2/.*pl/.sh}"
656-
if [ -x "$WEBTPL/$1/$WEB_BACKEND/$trigger" ]; then
657-
$WEBTPL/$1/$WEB_BACKEND/$trigger \
658-
$user $domain $local_ip $HOMEDIR \
659-
$HOMEDIR/$user/web/$domain/public_html
660-
fi
661654
}
662655

663656
# Add mail server SSL configuration

0 commit comments

Comments
 (0)