summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/import-certs6
1 files changed, 6 insertions, 0 deletions
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`"