Fix access mode of modprobe file, restart logind after upgrade

This commit is contained in:
Lennart Poettering 2011-07-28 01:57:58 +02:00
parent 627a4a7ab6
commit b05890c8b3

View File

@ -2,7 +2,7 @@ Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd Url: http://www.freedesktop.org/wiki/Software/systemd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Version: 31 Version: 31
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Summary: A System and Service Manager Summary: A System and Service Manager
@ -158,7 +158,7 @@ install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/
# Install modprobe fragment # Install modprobe fragment
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/ mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
install -m 0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/ install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -175,6 +175,11 @@ if ! /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac ; then
/bin/grep -q pam_systemd /etc/pam.d/system-auth-ac || /usr/sbin/authconfig --updateall --nostart >/dev/null 2>&1 || : /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac || /usr/sbin/authconfig --updateall --nostart >/dev/null 2>&1 || :
fi fi
%postun
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
fi
%post units %post units
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
# Try to read default runlevel from the old inittab if it exists # Try to read default runlevel from the old inittab if it exists
@ -335,6 +340,9 @@ fi
%{_bindir}/systemd-sysv-convert %{_bindir}/systemd-sysv-convert
%changelog %changelog
* Wed Jul 27 2011 Lennart Poettering <lpoetter@redhat.com> - 31-2
- Fix access mode of modprobe file, restart logind after upgrade
* Wed Jul 27 2011 Lennart Poettering <lpoetter@redhat.com> - 31-1 * Wed Jul 27 2011 Lennart Poettering <lpoetter@redhat.com> - 31-1
- New upstream release - New upstream release