Skip to content

Commit 472494b

Browse files
committed
fixed alias verification
1 parent 8b56155 commit 472494b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/domain_func.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ is_dns_domain_free() {
6363
is_web_domain_free() {
6464
search_dom=${1-$domain}
6565
# Parsing domain values
66-
check_domain=$(grep -F "IN='$search_dom'" $V_USERS/$user/web.conf)
66+
check_domain=$(grep -F "DOMAIN='$search_dom'" $V_USERS/$user/web.conf)
6767

6868
# Parsing alias values
6969
check_alias=$(grep -F 'ALIAS=' $V_USERS/$user/web.conf | \
7070
awk -F "ALIAS=" '{print $2}' | \
7171
cut -f 2 -d \' | \
7272
sed -e "s/,/\n/g" | \
73-
grep "^$check_domain$" )
73+
grep "^$search_dom$" )
7474

7575
# Checking result
7676
if [ ! -z "$check_domain" ] || [ ! -z "$check_alias" ]; then

0 commit comments

Comments
 (0)