From: Silvio Rhatto Date: Thu, 23 Jun 2016 13:51:35 +0000 (-0300) Subject: Import certs: Check if there are certs at all X-Git-Tag: 0.2.4~136 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0e9d1d4b7246a15c9721420f301e82bd3b8619b2;p=hydra.git Import certs: Check if there are certs at all --- 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`"