aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/import-certs
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-23 10:51:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-23 10:51:35 -0300
commit0e9d1d4b7246a15c9721420f301e82bd3b8619b2 (patch)
treec0bd30f6a58f427ffa8783fbec07970bbbb0e3aa /share/hydra/import-certs
parenta6caa9d058f65d4d1f06adfa0aff02d0d1d07291 (diff)
downloadhydra-0e9d1d4b7246a15c9721420f301e82bd3b8619b2.tar.gz
hydra-0e9d1d4b7246a15c9721420f301e82bd3b8619b2.tar.bz2
Import certs: Check if there are certs at all
Diffstat (limited to 'share/hydra/import-certs')
-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`"