From 4eec833ee091c0bc6599114768a3361b0a1fb80f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 9 Apr 2020 16:21:44 +0200 Subject: [PATCH] Don't call hook scripts with exec So it won't exit after the first script --- dehydrated_hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dehydrated_hooks b/dehydrated_hooks index 72cd345..a1caf19 100644 --- a/dehydrated_hooks +++ b/dehydrated_hooks @@ -5,6 +5,6 @@ ACTION=${1} if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then shift for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do - [ -x $H ] && exec $H $@ + [ -x $H ] && $H $@ done fi