From 0e9d1d4b7246a15c9721420f301e82bd3b8619b2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 23 Jun 2016 10:51:35 -0300 Subject: Import certs: Check if there are certs at all --- share/hydra/import-certs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share/hydra/import-certs') diff --git a/share/hydra/import-certs b/share/hydra/import-certs index 15daca3..63cb935 100755 --- a/share/hydra/import-certs +++ b/share/hydra/import-certs @@ -28,6 +28,12 @@ if [ -z "$NODES" ]; then NODES="`hydra $HYDRA nodes`" fi +# Check if there are certs at all +if [ ! -d "$HYDRA_FOLDER/keyring/keys/ssl" ]; then + echo "Please create some certs first :)" + exit 1 +fi + # Deploy for node in $NODES; do hostname="`hydra_get_fqdn_from_nodename $node`" -- cgit v1.2.3