Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Berteaud 2e35cd92fa Automatic commit of package [dehydrated] minor release [0.7.0-5].
Created by command:

/usr/bin/tito tag
2022-07-01 16:15:46 +02:00
Daniel Berteaud 1655297695 Print executed and skiped hooks 2022-07-01 16:15:28 +02:00
3 changed files with 12 additions and 3 deletions

View File

@ -1 +1 @@
0.7.0-4 ./
0.7.0-5 ./

View File

@ -1,6 +1,6 @@
Name: dehydrated
Version: 0.7.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: ACME client in bash
Group: Application/System
@ -155,6 +155,9 @@ fi
%dir %attr(0750,root,root) %{_localstatedir}/lib/%{name}/certificates
%changelog
* Fri Jul 01 2022 Daniel Berteaud <dbd@ehtrace.com> 0.7.0-5
- Print executed and skiped hooks (dbd@ehtrace.com)
* Tue Jan 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.7.0-4
- Release bump

View File

@ -3,8 +3,14 @@
ACTION=${1}
if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then
echo Executing hooks for $ACTION event
shift
for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do
[ -x $H ] && $H $@
if [ -x $H ]; then
echo Running $H hook
$H $@
else
echo $H is not executable, skiping
fi
done
fi