From 53c119d7dfd6566b241065a6facfba3702666dd2 Mon Sep 17 00:00:00 2001 From: Alex Stuart Date: Tue, 28 Jul 2020 08:43:18 +0100 Subject: [PATCH] move json files from /tmp to production directory --- utilities/githooks/post-receive | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/githooks/post-receive b/utilities/githooks/post-receive index 58e146c0..52303df1 100755 --- a/utilities/githooks/post-receive +++ b/utilities/githooks/post-receive @@ -88,12 +88,14 @@ mtime=$(git --work-tree=$gitdir --git-dir=$gitdir/.git show $newrev --quiet --pr echo -n "Setting the timestamp on each file to that of the commit... " find $gitdir -regextype posix-extended -regex '.*\.(xml|gz)' -exec touch -d @$mtime {} \; find $mdqcachedir -exec touch -d @$mtime {} \; +touch -d @$mtime ${jsontempdir}/$discofeed ${jsontempdir}/${discofeed}.gz ${jsontempdir}/$discofeedall ${jsontempdir}/${discofeedall}.gz echo "Done." # Put files into the correct directory echo -n "Rsyncing files to the appropriate apache directory... " rsync -at $gitdir/aggregates/*.{xml,gz} $apacheaggrdir rsync -at --delete $mdqcachedir/ $apachemdqdir +rsync -at ${jsontempdir}/$discofeed ${jsontempdir}/${discofeed}.gz ${jsontempdir}/$discofeedall ${jsontempdir}/${discofeedall}.gz $apacheaggrdir echo "Done." # Remove the temporary files