]> gitweb.fluxo.info Git - hydra.git/commitdiff
Import certs: Check if there are certs at all
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 13:51:35 +0000 (10:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 13:51:35 +0000 (10:51 -0300)
share/hydra/import-certs

index 15daca3d5fec17b0b9aa89b617fd5745bd84d183..63cb9350e7df52b85879daa81e7bf504ddfb4a1d 100755 (executable)
@@ -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`"