diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-23 10:51:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-23 10:51:35 -0300 |
commit | 0e9d1d4b7246a15c9721420f301e82bd3b8619b2 (patch) | |
tree | c0bd30f6a58f427ffa8783fbec07970bbbb0e3aa /share | |
parent | a6caa9d058f65d4d1f06adfa0aff02d0d1d07291 (diff) | |
download | hydra-0e9d1d4b7246a15c9721420f301e82bd3b8619b2.tar.gz hydra-0e9d1d4b7246a15c9721420f301e82bd3b8619b2.tar.bz2 |
Import certs: Check if there are certs at all
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/import-certs | 6 |
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`" |