[systemd/f16] Fix access mode of modprobe file, restart logind after upgrade
Lennart Poettering
lennart at fedoraproject.org
Wed Jul 27 23:58:25 UTC 2011
commit b05890c8b3545b0707a07db7c024279e4c6a1ae6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 28 01:57:58 2011 +0200
Fix access mode of modprobe file, restart logind after upgrade
systemd.spec | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index a783cb8..aff17d9 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -2,7 +2,7 @@ Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Version: 31
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Base
Summary: A System and Service Manager
@@ -158,7 +158,7 @@ install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/
# Install modprobe fragment
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
-install -m 0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/
+install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/
%clean
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 || :
fi
+%postun
+if [ $1 -ge 1 ] ; then
+ /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
+fi
+
%post units
if [ $1 -eq 1 ] ; then
# Try to read default runlevel from the old inittab if it exists
@@ -335,6 +340,9 @@ fi
%{_bindir}/systemd-sysv-convert
%changelog
+* Wed Jul 27 2011 Lennart Poettering <lpoetter at redhat.com> - 31-2
+- Fix access mode of modprobe file, restart logind after upgrade
+
* Wed Jul 27 2011 Lennart Poettering <lpoetter at redhat.com> - 31-1
- New upstream release
More information about the scm-commits
mailing list