From e9045bea222823d12449fd98ac305225e21ab87b Mon Sep 17 00:00:00 2001 From: Sami Wagiaalla Date: Sat, 7 May 2016 12:59:17 -0400 Subject: [PATCH] Verify that openssl is installed in local-up-cluster.sh --- hack/local-up-cluster.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 37ad3b492b5..0710184ddc2 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -95,6 +95,14 @@ function test_docker { fi } +function test_openssl_installed { + openssl version >& /dev/null + if [ "$?" != "0" ]; then + echo "Failed to run openssl. Please ensure openssl is installed" + exit 1 + fi +} + # Shut down anyway if there's an error. set +e @@ -429,6 +437,7 @@ EOF test_docker test_apiserver_off +test_openssl_installed ### IF the user didn't supply an output/ for the build... Then we detect. if [ "$GO_OUT" == "" ]; then