We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b56155 commit 472494bCopy full SHA for 472494b
func/domain_func.sh
@@ -63,14 +63,14 @@ is_dns_domain_free() {
63
is_web_domain_free() {
64
search_dom=${1-$domain}
65
# Parsing domain values
66
- check_domain=$(grep -F "IN='$search_dom'" $V_USERS/$user/web.conf)
+ check_domain=$(grep -F "DOMAIN='$search_dom'" $V_USERS/$user/web.conf)
67
68
# Parsing alias values
69
check_alias=$(grep -F 'ALIAS=' $V_USERS/$user/web.conf | \
70
awk -F "ALIAS=" '{print $2}' | \
71
cut -f 2 -d \' | \
72
sed -e "s/,/\n/g" | \
73
- grep "^$check_domain$" )
+ grep "^$search_dom$" )
74
75
# Checking result
76
if [ ! -z "$check_domain" ] || [ ! -z "$check_alias" ]; then
0 commit comments