summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-13 19:33:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-13 19:33:49 -0300
commit71ab2e1023b219cf9ce2665ddb30f4e416419bb4 (patch)
tree025167e17805b62d09ba66bdd84ebda89c760313
parent0d507b1d0d3137fb3e13a8c46de9e319373c5849 (diff)
downloadhydra-71ab2e1023b219cf9ce2665ddb30f4e416419bb4.tar.gz
hydra-71ab2e1023b219cf9ce2665ddb30f4e416419bb4.tar.bz2
Newkeys: sync pubkeys folder
-rwxr-xr-xshare/hydra/newkeys3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys
index 152416e..418ed7a 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -59,6 +59,9 @@ function hydra_genpairs {
# Add key into puppet git repository.
( cd $PUPPET_KEYS/ssh/$node && git add $(basename $privkey) $(basename $pubkey) )
+
+ # Sync pubkeys folder
+ ( cd $PUPPET_KEYS/public && find ../ssh/ -maxdepth 2 -name '*.pub' -exec cp {} . \; )
}
# Load.