Update test.sh
This commit is contained in:
1 parent
98ff873628
commit
9f4da4f20d
1 file changed
+1
-1
@@ -29,7 +29,7 @@ CHECK_HOST(){
|
||||
#check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"`
|
||||
#echo "HERE: '${check}'"
|
||||
srvc=haproxy
|
||||
if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet $srvc && 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
|
||||
echo 'yes'
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user