]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Commented: sync-media.ready
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 26 Jul 2015 20:19:21 +0000 (17:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 26 Jul 2015 20:19:21 +0000 (17:19 -0300)
files/sync-media

index a5465f125be5e8bf992f7cb9317b24fa2d53cf29..6a7e28094b317b59be0ca25bf4e7edb43f606c99 100644 (file)
@@ -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