Fix stdin redirection in RPM scripts

Resolves: rhbz#2041585

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Alexander Bokovoy 2022-02-07 15:57:21 +02:00
parent 6cdd91925f
commit 20e192c5fe

View File

@ -22,7 +22,7 @@
Name: oddjob
Version: 0.34.7
Release: 4%{?dist}
Release: 5%{?dist}
Source0: https://releases.pagure.org/oddjob/oddjob-%{version}.tar.gz
Source1: https://releases.pagure.org/oddjob/oddjob-%{version}.tar.gz.asc
Summary: A D-Bus service which runs odd jobs on behalf of client applications
@ -186,7 +186,7 @@ touch -r src/oddjob-mkhomedir.conf.in $RPM_BUILD_ROOT/%{_sysconfdir}/dbus-1/syst
%post
if test $1 -eq 1 ; then
killall -HUP dbus-daemon 2>&1 > /dev/null
killall -HUP dbus-daemon >/dev/null 2>&1
fi
%if %{systemd}
%systemd_post oddjobd.service
@ -201,7 +201,7 @@ fi
%endif
%if %{sysvinit}
if [ $1 -gt 0 ] ; then
/sbin/service oddjobd condrestart 2>&1 > /dev/null || :
/sbin/service oddjobd condrestart >/dev/null 2>&1 || :
fi
%endif
exit 0
@ -212,7 +212,7 @@ exit 0
%endif
%if %{sysvinit}
if [ $1 -eq 0 ] ; then
/sbin/service oddjobd stop > /dev/null 2>&1
/sbin/service oddjobd stop >/dev/null 2>&1
/sbin/chkconfig --del oddjobd
fi
%endif
@ -239,7 +239,7 @@ if grep -q %{_libdir}/%{name}/mkhomedir $cfg ; then
sed -i 's^%{_libdir}/%{name}/mkhomedir^%{_libexecdir}/%{name}/mkhomedir^g' $cfg
fi
if test $1 -eq 1 ; then
killall -HUP dbus-daemon 2>&1 > /dev/null
killall -HUP dbus-daemon >/dev/null 2>&1
fi
if [ -f /var/lock/subsys/oddjobd ] ; then
%{dbus_send} --system --dest=com.redhat.oddjob /com/redhat/oddjob com.redhat.oddjob.reload
@ -247,6 +247,10 @@ fi
exit 0
%changelog
* Mon Feb 07 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.34.7-5
- Fix stdin redirection in RPM scripts
Resolves: rhbz#2041585
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.34.7-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688