- use install(1) to do all in once, but it's racy?
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 18 Apr 2010 15:04:49 +0000 (15:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cronie.spec -> 1.31

cronie.spec

index 3f06dd92b7b5c490cc8d7373afb7e885f5976983..3c3cf4e95ec90f581d3d81dabb30c95ec490808b 100644 (file)
@@ -139,10 +139,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 if [ ! -f /var/log/cron ]; then
-       umask 027
-       touch /var/log/cron
-       chgrp crontab /var/log/cron
-       chmod 660 /var/log/cron
+       install -m 660 -g crontab /dev/null /var/log/cron
 fi
 /sbin/chkconfig --add crond
 %service crond restart "Cron Daemon"
This page took 0.05316 seconds and 4 git commands to generate.