aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-07 08:28:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-07 08:28:17 -0300
commit4a247c0948fb2920015a5352cd950f7aec695451 (patch)
tree77a86591d0edac79477b705e7ac90c49a3b428cf /share
parentf60735f7e038d665727741f2386ee6b0d5e7a2e0 (diff)
downloadhydra-4a247c0948fb2920015a5352cd950f7aec695451.tar.gz
hydra-4a247c0948fb2920015a5352cd950f7aec695451.tar.bz2
Deploy: set --homedir=/root/.gnupg when testing for gpg keys
Diffstat (limited to 'share')
-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