]> gitweb.fluxo.info Git - hydra.git/commitdiff
Newkeys: sync pubkeys folder
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 13 Apr 2014 22:33:49 +0000 (19:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 13 Apr 2014 22:33:49 +0000 (19:33 -0300)
share/hydra/newkeys

index 152416e5b623a65fc3e8e2b6b2a72adebd1e4c64..418ed7a54ad34247e05b7725171005e064e3afc5 100755 (executable)
@@ -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.