From: Silvio Rhatto Date: Sun, 26 Jul 2015 20:19:21 +0000 (-0300) Subject: Commented: sync-media.ready X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=67d4fcee840ed4f7e2324bd5e8f318e961ebab6e;p=puppet-backup.git Commented: sync-media.ready --- diff --git a/files/sync-media b/files/sync-media index a5465f1..6a7e280 100644 --- a/files/sync-media +++ b/files/sync-media @@ -89,6 +89,11 @@ if [ -d "$CACHE" ]; then continue fi + #if [ "`git -C $CACHE/$folder config sync-media.ready`" != "true" ]; then + # echo "Skipping $CACHE/$folder: not sync-media ready, please config your repo." + # continue + #fi + ( cd $CACHE/$folder echo "Syncing $CACHE/$folder..." @@ -133,6 +138,11 @@ if [ -d "$CACHE" ]; then continue fi + #if [ "`git -C $CACHE/$folder config sync-media.ready`" != "true" ]; then + # echo "Skipping $CACHE/$folder: not sync-media ready, please config your repo." + # continue + #fi + if [ ! -d "$VOLUME/$MEDIA/$folder" ]; then ( cd $VOLUME/$MEDIA