From: Silvio Rhatto Date: Thu, 26 Jul 2018 14:26:57 +0000 (-0300) Subject: Fix git-annex initialization at sync-media X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b50ad3991bdd146aa1a184684969b4f6fb53dff2;p=hydra.git Fix git-annex initialization at sync-media --- diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 000909f..bff3987 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -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