]> gitweb.fluxo.info Git - hydra.git/commitdiff
Timestamp for new repositories at sync-media
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 16:16:22 +0000 (14:16 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 16:16:22 +0000 (14:16 -0200)
share/hydractl/sync-media

index 2cddb4332136b764ece1c9927eabc014bc8c892e..a15e8b7d6560288c0ed1af9909b0f88ba7c71fd1 100755 (executable)
@@ -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