From 706bd202178507ef3afb1d7e7788a120d8a52cc1 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Tue, 1 Dec 2020 14:37:24 -0700 Subject: Initial commit of post-receive hook --- hooks/post-receive | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hooks/post-receive diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100644 index 0000000..15039d4 --- /dev/null +++ b/hooks/post-receive @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +dest=${WEB}/oper.io.services/crux-ports-arm64 + +# Copy files from working cache to destination +cp -r ./* ${dest}/ + +for i in ${FILES_E[*]}; do + printf '[git] Updating %s\n' "${i}" +done + +for i in ${FILES_D[*]}; do + printf '[git] Removing %s\n' "${i}" +done + +# Regen repo httpup files +httpup-repgen "${dest}" -- cgit v1.2.3