aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/deploy4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 1219efd..c20eee2 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -153,7 +153,7 @@ for node in $NODES; do
# Import keys if needed
if ! $SUDO test -f /root/.ssh/id_rsa || \
! $SUDO test -f /root/.config/borg/hydra/key || \
- ! $SUDO gpg --list-secret-keys root@$FQDN &> /dev/null; then
+ ! $SUDO gpg --homedir=/root/.gnupg --list-secret-keys root@$FQDN &> /dev/null; then
hydra $HYDRA import-keys $FQDN
fi
else
@@ -244,7 +244,7 @@ EOF
# Import keys if needed
if ! $HYDRA_CONNECT $FQDN sudo test -f /root/.ssh/id_rsa || \
! $HYDRA_CONNECT $FQDN sudo test -f /root/.config/borg/hydra/key || \
- ! $HYDRA_CONNECT $FQDN sudo gpg --list-secret-keys root@$FQDN &> /dev/null; then
+ ! $HYDRA_CONNECT $FQDN sudo gpg --homedir=/root/.gnupg --list-secret-keys root@$FQDN &> /dev/null; then
hydra $HYDRA import-keys $FQDN
fi
fi