- fix postinstall to test for existence of /var/run/utmp

before trying to chgrp

OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=167
This commit is contained in:
Ruediger Oertel 2010-11-17 11:54:11 +00:00 committed by Git OBS Bridge
parent 88152170cb
commit 898f7624ed
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 17 12:53:36 CET 2010 - ro@suse.de
- fix postinstall to test for existence of /var/run/utmp
before trying to chgrp
-------------------------------------------------------------------
Tue Nov 16 09:51:52 UTC 2010 - aj@suse.de

View File

@ -169,7 +169,10 @@ if test ! -e /var/log/wtmp ; then
fi
# The group ownership of the following files has changed for openSUSE 11.4
# update it:
chgrp utmp /var/log/wtmp /var/log/lastlog /var/run/utmp
chgrp utmp /var/log/wtmp /var/log/lastlog
if test -e /var/run/utmp ; then
chgrp utmp /var/run/utmp
fi
if test -e /usr/sbin/usrdel.local -a ! -e /usr/sbin/userdel.local ; then
cp /usr/sbin/usrdel.local /usr/sbin/userdel.local