From 65463b53be67ad2dee76856e3438ed9e9ae676c2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 21:19:17 -0600 Subject: [PATCH] Update test.sh --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 63169bf..4358553 100755 --- a/test.sh +++ b/test.sh @@ -30,7 +30,7 @@ CHECK_HOST(){ #echo "HERE: '${check}'" 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 haproxy)" = "active" ]; then +if [ "$(ssh root@10.5.10.53 systemctl is-active ${srvc})" = "active" ]; then echo 'yes' else echo 'no'