diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/sync-media-init | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/files/sync-media-init b/files/sync-media-init index 295da05..1310aa5 100644 --- a/files/sync-media-init +++ b/files/sync-media-init @@ -31,13 +31,12 @@ for file in `ls $MEDIA`; do echo Processing "$MEDIA/$file..." cd $MEDIA/$file - if [ ! -d "$MEDIA/$file/.git/annex" ]; then - git annex init $HOST - fi - echo "Removing origin..." git remote rm origin - git annex init $VOLUME + + if [ ! -d "$MEDIA/$file/.git/annex" ]; then + git annex init $VOLUME + fi for remote in $REMOTE_BOXES; do echo "Adding /var/cache/$remote/media/$file remote..." |