From 9e5b62d8e66279b59cec10fa5c10076b1a017919 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Thu, 17 May 2018 11:11:55 +0100 Subject: [PATCH] Fixed create_zkpath check for /openvpn in ZK as it was picking up marathon state info of the same name --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index 7a10d03..a773dea 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -111,7 +111,7 @@ function set_public_location { ############################## function create_zkpath { - if [[ $(run_command "find /openvpn") = "" ]]; then + if [[ $(run_command "find /openvpn") = "Path /openvpn doesn't exist" ]]; then echo "INFO: Creating the zkpath if it doesn't already exist" run_command "create $ZKPATH '' false false true" run_command "set_acls /$ZKPATH username_password:$OVPN_USERNAME:$OVPN_PASSWORD:cdrwa"