File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ source $VESTA/conf/vesta.conf
2626check_args ' 2' " $# " ' USER DOMAIN'
2727validate_format ' user' ' domain'
2828is_system_enabled " $DNS_CLUSTER " ' DNS_CLUSTER'
29- is_object_valid ' user' ' USER' " $user "
30- is_object_valid ' dns' ' DOMAIN' " $domain "
3129
3230if [ ! -e " $VESTA /conf/dns-cluster.conf" ]; then
3331 echo " Error: dns-cluster.conf doesn't exist"
4745# Action #
4846# ----------------------------------------------------------#
4947
48+ # Check domain existance
49+ check_local_domain=$( grep " DOMAIN='$domain '" $USER_DATA /dns.conf 2> /dev/null)
50+ if [ -z " $check_local_domain " ]; then
51+ pipe=" $VESTA /data/queue/dns-cluster.pipe"
52+ str=$( grep -n " $SCRIPT $1 $2 $" $pipe | cut -f1 -d: | head -n1)
53+ if [ ! -z " $str " ]; then
54+ sed -i " $str d" $pipe
55+ fi
56+ exit
57+ fi
58+
5059old_ifs=" $IFS "
5160IFS=$' \n '
5261
You can’t perform that action at this time.
0 commit comments