1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00: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"
for CS in $cs_addr; do
if [ "$(eval $SSH_CHECK)" -eq "10" ]; then
if [[ "10" -eq "$(eval $SSH_CHECK)" ]]; then
# echo "$CS is Primary"
PRIMARY_CS=$CS
break

View file

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