We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e828e25 commit ae9da60Copy full SHA for ae9da60
1 file changed
func/domain.sh
@@ -52,8 +52,9 @@ is_domain_new() {
52
if [ ! -z "$check_all" ]; then
53
check_ownership=$(grep -w $dom $USER_DATA/*.conf)
54
if [ ! -z "$check_ownership" ]; then
55
- check_type=$(grep -w $dom $USER_DATA/$config_type.conf)
56
- if [ ! -z "$check_type" ]; then
+ check_type1=$(grep -w "'$dom" $USER_DATA/$config_type.conf)
+ check_type2=$(grep -w ",$dom" $USER_DATA/$config_type.conf)
57
+ if [ ! -z "$check_type1" ] || [ ! -z "$check_type2" ]; then
58
echo "Error: domain $dom exist"
59
log_event "$E_EXISTS" "$EVENT"
60
exit $E_EXISTS
0 commit comments