]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix git-annex initialization at sync-media
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Jul 2018 14:26:57 +0000 (11:26 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Jul 2018 14:26:57 +0000 (11:26 -0300)
share/hydractl/sync-media

index 000909fdf86bc49851e8d1d075f5d42f2bd76b8e..bff39877b931e759572efc11ae4992fa4f3eb019 100755 (executable)
@@ -207,7 +207,7 @@ for folder in `ls $CACHE`; do
 
         if [ -d "$CACHE/$folder/.git/annex" ]; then
           (
-          cd $VOLUME/$MEDIA
+          cd $VOLUME/$MEDIA/$folder
           git annex init $DRIVE && git config sync-media.getall true
           )
         fi
@@ -281,7 +281,7 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
 
         if [ -d "$VOLUME/$MEDIA/$folder/.git/annex" ]; then
           (
-          cd $CACHE
+          cd $CACHE/$folder
           git annex init $HOST
           )
         fi