diff options
author | Colin Guthrie <colin@mageia.org> | 2014-03-13 09:06:09 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-03-13 09:06:09 +0000 |
commit | 2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1 (patch) | |
tree | 3d77457d0eb483a022e9b6ed51be06e607c77e39 /deployment/mgagit/templates | |
parent | e047e7a603da470d757106cdc9b5ee560343d29d (diff) | |
download | puppet-2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1.tar puppet-2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1.tar.gz puppet-2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1.tar.bz2 puppet-2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1.tar.xz puppet-2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1.zip |
mgagit: Make the repository update hook more generic to cover all repo groups
Diffstat (limited to 'deployment/mgagit/templates')
-rw-r--r-- | deployment/mgagit/templates/git-post-update-hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/mgagit/templates/git-post-update-hook b/deployment/mgagit/templates/git-post-update-hook index 49cd0a1c..a2550ad3 100644 --- a/deployment/mgagit/templates/git-post-update-hook +++ b/deployment/mgagit/templates/git-post-update-hook @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$GL_REPO" == "infrastructure/repositories/software" -o "$GL_REPO" == "infrastructure/repositories/web" ]; then +if [ "${GL_REPO:0:28}" == "infrastructure/repositories/" ]; then OK=no (unset GIT_DIR && mgagit glconf && mgagit glrun) >/dev/null 2>&1 && OK=yes if [ "$OK" == "yes" ]; then |