From d5e0dd8658e99769b771da81fa4aeb479dbfb363 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 7 Oct 2013 09:33:07 +0000 Subject: mgagit: Import a manually added script on the server side to puppet --- deployment/mgagit/templates/git-post-update-hook | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deployment/mgagit/templates/git-post-update-hook (limited to 'deployment/mgagit/templates') diff --git a/deployment/mgagit/templates/git-post-update-hook b/deployment/mgagit/templates/git-post-update-hook new file mode 100644 index 00000000..49cd0a1c --- /dev/null +++ b/deployment/mgagit/templates/git-post-update-hook @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ "$GL_REPO" == "infrastructure/repositories/software" -o "$GL_REPO" == "infrastructure/repositories/web" ]; then + OK=no + (unset GIT_DIR && mgagit glconf && mgagit glrun) >/dev/null 2>&1 && OK=yes + if [ "$OK" == "yes" ]; then + echo + echo " *** Repository definitions updated" + echo + fi +fi +exit 0 \ No newline at end of file -- cgit v1.2.1