aboutsummaryrefslogtreecommitdiff
path: root/files/sync-media-init
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-31 15:58:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-31 15:58:38 -0300
commit52ea3de1a27ffa02ebf017a8abea7b3b87bafa60 (patch)
tree75c95e892f0e026ed881e14ab038b393d1dcd2ce /files/sync-media-init
parentba51f5aee1ae27e4bd70619b20b6260471ed9c24 (diff)
downloadpuppet-backup-52ea3de1a27ffa02ebf017a8abea7b3b87bafa60.tar.gz
puppet-backup-52ea3de1a27ffa02ebf017a8abea7b3b87bafa60.tar.bz2
Cleanup on sync-media-init
Diffstat (limited to 'files/sync-media-init')
-rw-r--r--files/sync-media-init9
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..."