wok-current diff logrotate/receipt @ rev 18819
Add python-pyflakes
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Jan 16 09:17:41 2016 +0000 (2016-01-16) |
parents | 380ffe05937a |
children | e8c84b81fa04 |
line diff
1.1 --- a/logrotate/receipt Sat Aug 10 17:00:38 2013 +0000 1.2 +++ b/logrotate/receipt Sat Jan 16 09:17:41 2016 +0000 1.3 @@ -32,19 +32,19 @@ 1.4 1.5 post_install() 1.6 { 1.7 - if [ -f $1/var/spool/cron/crontabs/root ]; then 1.8 + if [ -f "$1/var/spool/cron/crontabs/root" ]; then 1.9 echo "Runing post install command..." 1.10 echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \ 1.11 - >> $1/var/spool/cron/crontabs/root 1.12 + >> "$1/var/spool/cron/crontabs/root" 1.13 fi 1.14 } 1.15 1.16 1.17 post_remove() 1.18 { 1.19 - if [ -f $1/var/spool/cron/crontabs/root ]; then 1.20 + if [ -f "$1/var/spool/cron/crontabs/root" ]; then 1.21 echo "Runing post install command..." 1.22 - sed -i s!.*logrotate.*!! $1/var/spool/cron/crontabs/root 1.23 + sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root" 1.24 fi 1.25 } 1.26