From 6bc854b6b355dcce1b088cd59231344353a6055c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 2 Oct 2016 18:54:22 -0300 Subject: Sync-media getall by default on removable media --- share/hydractl/sync-media | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share/hydractl') diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 3045ae2..45e7c5b 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -195,7 +195,8 @@ for folder in `ls $CACHE`; do cd $VOLUME/$MEDIA echo "Initializing $VOLUME/$MEDIA/$folder..." git clone $CACHE/$folder && cd $folder && sync_media_identity && git annex init $DRIVE && \ - git remote rename origin $HOST && cd $CACHE/$folder && git remote add $DRIVE $VOLUME/$MEDIA/$folder + git remote rename origin $HOST && git config sync-media.getall true && \ + cd $CACHE/$folder && git remote add $DRIVE $VOLUME/$MEDIA/$folder ) fi elif [ ! -d "$VOLUME/$MEDIA/$folder" ]; then @@ -219,8 +220,8 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then cd $VOLUME/$MEDIA/$folder echo "Syncing $VOLUME/$MEDIA/$folder..." - sync_media_ensure_remote $HOST $CACHE/$folder sync_media_playlist_perms + sync_media_ensure_remote $HOST $CACHE/$folder sync_media_identity sync_media_add git annex sync -- cgit v1.2.3