]> gitweb.fluxo.info Git - hydra.git/commitdiff
Run a custom synchronizer at sync-media
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Nov 2016 20:13:50 +0000 (18:13 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Nov 2016 20:13:50 +0000 (18:13 -0200)
share/hydractl/sync-media

index a63f782aff222d6554ff5f330a9c28c92ee76346..b34df6a983b57e63a52b6107beaa4262f0fc503e 100755 (executable)
@@ -261,6 +261,11 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
       fi
     fi
 
+    # Run a custom synchronizer
+    if [ ! -x "$CACHE/$folder/.sync-media/custom" ]; then
+      $CACHE/$folder/.sync-media/custom $VOLUME/$MEDIA/$folder
+    fi
+
     # Ensure the local cache has each repository listed in the removable media
     if [ ! -d "$CACHE/$folder" ]; then
       if [ -d "$VOLUME/$MEDIA/$folder/.git" ]; then