From: Elan Ruusamäe Date: Sun, 18 Apr 2010 15:04:49 +0000 (+0000) Subject: - use install(1) to do all in once, but it's racy? X-Git-Tag: auto/ti/cronie-1_4_4-4~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcronie.git;a=commitdiff_plain;h=7ff8f9448cc25e5c65e43db557171706a773f3b5 - use install(1) to do all in once, but it's racy? Changed files: cronie.spec -> 1.31 --- diff --git a/cronie.spec b/cronie.spec index 3f06dd9..3c3cf4e 100644 --- a/cronie.spec +++ b/cronie.spec @@ -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"