aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/eyaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/eyaml b/share/hydra/eyaml
index b07d991..c66eaf5 100755
--- a/share/hydra/eyaml
+++ b/share/hydra/eyaml
@@ -47,7 +47,7 @@ PRIV_CRYPT="nodes/$FQDN/eyaml/private_key.pkcs7.pem.asc"
PUB_CRYPT="nodes/$FQDN/eyaml/public_key.pkcs7.pem"
# Test for single-key setup
-if [ -e "$HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem" ] && [ ! -h "$HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem" ]; then
+if [ -e "$HYDRA_FOLDER/keyring/keys/domains/$DOMAIN/eyaml/private_key.pkcs7.pem.asc" ] && [ ! -h "$HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem" ]; then
PRIV="$HYDRA_FOLDER/puppet/keys/private_key.pkcs7.pem"
PUB="$HYDRA_FOLDER/puppet/keys/public_key.pkcs7.pem"
PRIV_CRYPT="domains/$DOMAIN/eyaml/private_key.pkcs7.pem"