Compare commits
2 Commits
13e6ef7e6a
...
2e35cd92fa
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 2e35cd92fa | |
Daniel Berteaud | 1655297695 |
|
@ -1 +1 @@
|
|||
0.7.0-4 ./
|
||||
0.7.0-5 ./
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue