Don't use run-parts for hooks discovery (#1558612)

This commit is contained in:
Pavel Zhukov 2018-03-21 10:21:01 +01:00
parent a525cff986
commit 035f21b66d
2 changed files with 5 additions and 2 deletions

View File

@ -217,7 +217,7 @@ run_hookdir() {
dir="${1}"
if [ -d "${dir}" ]; then
for script in $(run-parts --list $dir); do
for script in $(find $dir -executable ! -empty); do
run_hook ${script} || return $?
done
fi

View File

@ -16,7 +16,7 @@
Summary: Dynamic host configuration protocol software
Name: dhcp
Version: 4.3.6
Release: 18%{?dist}
Release: 19%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was.
@ -672,6 +672,9 @@ done
%endif
%changelog
* Wed Mar 21 2018 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-19
- Don't use run-parts for hooks discovery (#1558612)
* Fri Mar 09 2018 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-18
- Own ldap schema directory (#1553432)