Skip to content

Commit 6d4da8d

Browse files
committed
fixed remote port for dns-cluster
1 parent f851da5 commit 6d4da8d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/v-add-remote-dns-host

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ user=$3
1616
password=$4
1717
type=${5-api}
1818
dns_user=${6-dns-cluster}
19-
20-
# fix for variable name in other files
2119
DNS_USER=$dns_user
2220

2321
# Includes
@@ -45,9 +43,10 @@ is_dnshost_alive
4543
# Action #
4644
#----------------------------------------------------------#
4745

48-
# Concatentating db host string
49-
str="HOST='$host' USER='$user' PASSWORD='$password' DNS_USER='$dns_user'"
50-
str="$str TYPE='$type' SUSPENDED='no' TIME='$TIME' DATE='$DATE'"
46+
# Concatentating dns host string
47+
str="HOST='$host' PORT='$port' USER='$user' PASSWORD='$password'"
48+
str="$str DNS_USER='$dns_user' TYPE='$type' SUSPENDED='no'"
49+
str="$str TIME='$TIME' DATE='$DATE'"
5150

5251
# Adding host to dns-cluster.conf
5352
echo "$str" >> $VESTA/conf/dns-cluster.conf

0 commit comments

Comments
 (0)