]> gitweb.fluxo.info Git - hydra.git/commitdiff
Initializing keyring on hydra sync
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Oct 2013 01:08:45 +0000 (23:08 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Oct 2013 01:08:45 +0000 (23:08 -0200)
share/hydra/sync

index 1c3724d28c731242fe5eb358a7d5c990c0322093..6fd8d1991b50a26e36b741993c9e51e8c2d1fd95 100755 (executable)
@@ -36,6 +36,12 @@ for repository in $REPOSITORIES; do
 
   if [ ! -d "$HYDRA_FOLDER/$repository/.git" ]; then
     git clone $PRIVATE_REPOS/$repository $HYDRA_FOLDER/$repository
+
+    # TODO: check if keyringer is installed
+    if [ ! -e "$HOME/.keyringer/$HYDRA" ]; then
+      echo "Initializing keyring for $HYDRA..."
+      keyringer $HYDRA init $HYDRA_FOLDER/$repository
+    fi
   fi
 
   if [ -d "$HYDRA_FOLDER/$repository/.git" ]; then