diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-13 19:33:49 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-13 19:33:49 -0300 |
commit | 71ab2e1023b219cf9ce2665ddb30f4e416419bb4 (patch) | |
tree | 025167e17805b62d09ba66bdd84ebda89c760313 | |
parent | 0d507b1d0d3137fb3e13a8c46de9e319373c5849 (diff) | |
download | hydra-71ab2e1023b219cf9ce2665ddb30f4e416419bb4.tar.gz hydra-71ab2e1023b219cf9ce2665ddb30f4e416419bb4.tar.bz2 |
Newkeys: sync pubkeys folder
-rwxr-xr-x | share/hydra/newkeys | 3 |
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. |