Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -30,7 +30,7 @@ CHECK_HOST(){
|
|||||||
#echo "HERE: '${check}'"
|
#echo "HERE: '${check}'"
|
||||||
srvc=haproxy
|
srvc=haproxy
|
||||||
if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy && echo true')" = "true" ]; then
|
if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy && echo true')" = "true" ]; then
|
||||||
#if [ $(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy') ]; then
|
if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy')" ]; then
|
||||||
echo 'yes'
|
echo 'yes'
|
||||||
else
|
else
|
||||||
echo 'no'
|
echo 'no'
|
||||||
|
|||||||
Reference in New Issue
Block a user