From 52ea3de1a27ffa02ebf017a8abea7b3b87bafa60 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 31 May 2013 15:58:38 -0300 Subject: Cleanup on sync-media-init --- files/sync-media-init | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'files/sync-media-init') 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..." -- cgit v1.2.3