summaryrefslogtreecommitdiffstats
path: root/share/hooks/pre-create.git-pull.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-04-11 12:54:55 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-04-11 12:54:55 +0000
commitb23ca4544efaaad8cee17dce18362ba42c5d52ad (patch)
tree354249b367ece4a741668c0443d49db5972a03e6 /share/hooks/pre-create.git-pull.sh
parentUsing /var/cache/container instead of /var/cache/open-infrastructure/container. (diff)
downloadcompute-tools-b23ca4544efaaad8cee17dce18362ba42c5d52ad.tar.xz
compute-tools-b23ca4544efaaad8cee17dce18362ba42c5d52ad.zip
Making hook to git-pull debconf files work recursively.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/hooks/pre-create.git-pull.sh')
-rwxr-xr-xshare/hooks/pre-create.git-pull.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hooks/pre-create.git-pull.sh b/share/hooks/pre-create.git-pull.sh
index 9704206..d081b43 100755
--- a/share/hooks/pre-create.git-pull.sh
+++ b/share/hooks/pre-create.git-pull.sh
@@ -23,7 +23,7 @@ PROJECT="open-infrastructure"
SOFTWARE="compute-tools"
PROGRAM="container"
-DIRECTORIES="/etc/${SOFTWARE}/debconf /etc/${SOFTWARE}/debconf/*/"
+DIRECTORIES="$(for DIRECTORY in $(find /etc/${SOFTWARE}/debconf/ -type d -name ".git"); do echo $(dirname ${DIRECTORY}); done | sort -uV)"
for DIRECTORY in ${DIRECTORIES}
do