diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2012-12-30 18:53:17 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2012-12-30 18:53:17 +0000 |
commit | 6bc7fabb43d81ef14be10cc378dd3beeb4dfeeda (patch) | |
tree | c3cd3b769eee4f4d162e0166ed009dadbe0cc43b /app-admin/logcheck/files | |
parent | Version bump. Fix bug #439352 by flameeyes (cc called directly). Remove old. (diff) | |
download | gentoo-2-6bc7fabb43d81ef14be10cc378dd3beeb4dfeeda.tar.gz gentoo-2-6bc7fabb43d81ef14be10cc378dd3beeb4dfeeda.tar.bz2 gentoo-2-6bc7fabb43d81ef14be10cc378dd3beeb4dfeeda.zip |
Make sure lock directory exists, bug #440880 by Ivan.
(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 30427902)
Diffstat (limited to 'app-admin/logcheck/files')
-rw-r--r-- | app-admin/logcheck/files/logcheck.cron | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app-admin/logcheck/files/logcheck.cron b/app-admin/logcheck/files/logcheck.cron index 992eb7178920..3b3f4fcf62bd 100644 --- a/app-admin/logcheck/files/logcheck.cron +++ b/app-admin/logcheck/files/logcheck.cron @@ -1,5 +1,10 @@ #!/bin/bash -# -# Please uncomment the following if you want logcheck to run hourly. -#su -s /bin/bash -c /usr/sbin/logcheck logcheck +set -e + +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck +fi +chown -R logcheck:logcheck /var/lock/logcheck + +su -s /bin/bash -c /usr/sbin/logcheck logcheck |