diff options
Diffstat (limited to 'debian/open-infrastructure-dehydrated-tools.postinst')
-rwxr-xr-x | debian/open-infrastructure-dehydrated-tools.postinst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.postinst b/debian/open-infrastructure-dehydrated-tools.postinst index 116223f..fdf39dc 100755 --- a/debian/open-infrastructure-dehydrated-tools.postinst +++ b/debian/open-infrastructure-dehydrated-tools.postinst @@ -116,9 +116,14 @@ case "${1}" in HOOKS="$(echo ${HOOKS} | sed -e 's|,| |g')" + if echo "${HOOKS}" | grep -qs "ALL" + then + HOOKS="$(cd /usr/share/dehydrated/hooks && find -maxdepth 1 -not -type d -printf '%P\n' | sort)" + fi + for HOOK in ${HOOKS} do - if [ ! -e "/etc/dehydrated/hook.d/${HOOK}" ] + if [ ! -e "/etc/dehydrated/hook.d/${HOOK}" ] && [ -e "/usr/share/dehydrated/hooks/${HOOK}" ] then ln -sf "/usr/share/dehydrated/hooks/${HOOK}" "/etc/dehydrated/hook.d/${HOOK}" fi |