aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-20 14:16:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-20 14:16:22 -0200
commite7d64405c8dc31b67b16795426480cae4d09a7cf (patch)
treee5d9442abfd5bba9a0aa265bb3615a0bceb02818 /share/hydractl
parente1a59ff6b95dad487904f025224c56805645504f (diff)
downloadhydra-e7d64405c8dc31b67b16795426480cae4d09a7cf.tar.gz
hydra-e7d64405c8dc31b67b16795426480cae4d09a7cf.tar.bz2
Timestamp for new repositories at sync-media
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/sync-media3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 2cddb43..a15e8b7 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -214,6 +214,9 @@ for folder in `ls $CACHE`; do
fi
elif [ ! -d "$VOLUME/$MEDIA/$folder" ]; then
mkdir -p $VOLUME/$MEDIA/$folder
+
+ # Set timestamp old enough to help unison guess which copy is newer
+ touch -t 197001010000 $VOLUME/$MEDIA/$folder
fi
fi
done