]> git.pld-linux.org Git - packages/libutempter.git/commitdiff
- create utmpx in %post, so no reboot is needed for file to be created
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 12 Jul 2005 17:16:30 +0000 (17:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (consider cases when admin boots from livecd and starts installing pld over ssh)

Changed files:
    libutempter.spec -> 1.53

libutempter.spec

index ceacc97f320a766ec850c3283b901e1ff1e29fd1..3e87b604861b6e698041267eb16d7db5c1931fd0 100644 (file)
@@ -6,7 +6,7 @@ Summary(ru):    
 Summary(uk):   ðÒÉצÌÅÊÏ×ÁÎÁ ÐÒÏÇÒÁÍÁ ÄÌÑ ×ÎÅÓÅÎÎÑ ÚͦΠÄÏ utmp/wtmp
 Name:          utempter
 Version:       0.5.5
-Release:       5
+Release:       5.1
 License:       MIT or LGPL
 Group:         Base
 Source0:       %{name}-%{version}.tar.gz
@@ -84,7 +84,15 @@ install -d $RPM_BUILD_ROOT/var/run
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+if [ ! -f /var/run/utmpx ]; then
+       umask 2
+       touch /var/run/utmpx
+       chown root.utmp /var/run/utmpx
+       chmod 0664 /var/run/utmpx
+fi
+
 %postun        -p /sbin/ldconfig
 
 %files
This page took 0.069922 seconds and 4 git commands to generate.