Don't call hook scripts with exec

So it won't exit after the first script
tags/dehydrated-0.6.5-13
Daniel Berteaud 4 years ago
parent 18630062fa
commit 4eec833ee0
  1. 2
      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

Loading…
Cancel
Save