diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-04-11 12:54:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-04-11 12:54:55 +0000 |
commit | b23ca4544efaaad8cee17dce18362ba42c5d52ad (patch) | |
tree | 354249b367ece4a741668c0443d49db5972a03e6 /share | |
parent | Using /var/cache/container instead of /var/cache/open-infrastructure/container. (diff) | |
download | compute-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 '')
-rwxr-xr-x | share/hooks/pre-create.git-pull.sh | 2 |
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 |