From cedf48ce406b64edfd87ee7f20c2d3e1275ac7fa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 21:02:52 -0600 Subject: [PATCH] Update test.sh --- test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 16320d7..60740e3 100755 --- a/test.sh +++ b/test.sh @@ -28,7 +28,8 @@ CHECK_HOST(){ #check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"` #echo "HERE: '${check}'" -if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy && echo true')" = "true" ]; then +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') ]; then echo 'yes' else