dehydrated/dehydrated_hooks

11 lines
206 B
Plaintext
Raw Normal View History

2018-02-01 11:20:37 +01:00
#!/bin/sh
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 $@
done
fi