2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Small fix in choosing Primary CS

This commit is contained in:
Diver 2016-11-26 02:31:36 +03:00
parent 8b31264461
commit 5aa034be8c
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ fi
#Choosing Cotrol Station. Code have to be "10" #Choosing Cotrol Station. Code have to be "10"
for CS in $cs_addr; do for CS in $cs_addr; do
if [ "$(eval $SSH_CHECK)" -eq "10" ]; then if [[ "10" -eq "$(eval $SSH_CHECK)" ]]; then
# echo "$CS is Primary" # echo "$CS is Primary"
PRIMARY_CS=$CS PRIMARY_CS=$CS
break break

View File

@ -83,7 +83,7 @@ fi
#Choosing Cotrol Station. Code have to be "10" #Choosing Cotrol Station. Code have to be "10"
for CS in $cs_addr; do for CS in $cs_addr; do
if [ "$(eval $SSH_CHECK)" -eq "10" ]; then if [[ "10" -eq "$(eval $SSH_CHECK)" ]]; then
# echo "$CS is Primary" # echo "$CS is Primary"
PRIMARY_CS=$CS PRIMARY_CS=$CS
break break