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:
parent
8b31264461
commit
5aa034be8c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue