Skip to content

Commit f5dcd88

Browse files
committed
wildcard support in new domain verification
1 parent f0cae5a commit f5dcd88

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
@@ -49,9 +49,9 @@ is_domain_new() {
4949
type="$1"
5050
dom=${2-$domain}
5151

52-
web=$(grep -H "DOMAIN='$dom'" $VESTA/data/users/*/web.conf)
53-
dns=$(grep -H "DOMAIN='$dom'" $VESTA/data/users/*/dns.conf)
54-
mail=$(grep -H "DOMAIN='$dom'" $VESTA/data/users/*/mail.conf)
52+
web=$(grep -F -H "DOMAIN='$dom'" $VESTA/data/users/*/web.conf)
53+
dns=$(grep -F -H "DOMAIN='$dom'" $VESTA/data/users/*/dns.conf)
54+
mail=$(grep -F -H "DOMAIN='$dom'" $VESTA/data/users/*/mail.conf)
5555

5656
# Check web domain
5757
if [ ! -z "$web" ] && [ "$type" == 'web' ]; then

0 commit comments

Comments
 (0)