aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-02 18:54:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-02 18:54:22 -0300
commit6bc854b6b355dcce1b088cd59231344353a6055c (patch)
tree18db3190e6ea200b6b59a2dfb7b22217eb2eb04d /share/hydractl/sync-media
parent605585e80640077de889eae58a59283aaffabde5 (diff)
downloadhydra-6bc854b6b355dcce1b088cd59231344353a6055c.tar.gz
hydra-6bc854b6b355dcce1b088cd59231344353a6055c.tar.bz2
Sync-media getall by default on removable media
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-xshare/hydractl/sync-media5
1 files changed, 3 insertions, 2 deletions
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