aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
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