Browse Source

Don't call hook scripts with exec

So it won't exit after the first script
tags/dehydrated-0.6.5-13
Daniel Berteaud 2 years ago
parent
commit
4eec833ee0
  1. 2
      dehydrated_hooks

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