Skip to content

Commit 6670658

Browse files
committed
minor fixes for dns-cluster sync
1 parent 3450cb4 commit 6670658

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/v-delete-remote-dns-host

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ host=$1
1515
# Includes
1616
source $VESTA/conf/vesta.conf
1717
source $VESTA/func/main.sh
18+
source $VESTA/func/remote.sh
1819

1920

2021
#----------------------------------------------------------#
@@ -35,7 +36,7 @@ is_object_valid "../../conf/dns-cluster" 'HOST' "$host"
3536
$BIN/v-delete-remote-dns-domains $host >>/dev/null 2>&1
3637

3738
# Disabling restart queue
38-
eval $(grep $host $VESTA/conf/dns-cluster)
39+
eval $(grep $host $VESTA/conf/dns-cluster.conf)
3940
case $TYPE in
4041
ssh) send_cmd="send_ssh_cmd" ;;
4142
*) send_cmd="send_api_cmd" ;;

bin/v-delete-remote-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ done
9292

9393
# Update pipe
9494
pipe="$VESTA/data/queue/dns-cluster.pipe"
95-
str=$(grep -n "$SCRIPT $1 $2 &3$" $pipe | cut -f1 -d: | head -n1)
95+
str=$(grep -n "$SCRIPT $1 $2 $3$" $pipe | cut -f1 -d: | head -n1)
9696
if [ ! -z "$str" ]; then
9797
sed -i "$str d" $pipe
9898
fi

0 commit comments

Comments
 (0)