From: Silvio Rhatto Date: Tue, 8 Nov 2016 20:13:50 +0000 (-0200) Subject: Run a custom synchronizer at sync-media X-Git-Tag: 0.2.4~27 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=88e3a4131b2f8ead94ce8a808427d080cc411629;p=hydra.git Run a custom synchronizer at sync-media --- diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index a63f782..b34df6a 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -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