diff options
author | Jonathan Steel | 2017-05-16 09:01:33 +0100 |
---|---|---|
committer | Jonathan Steel | 2017-05-16 09:01:33 +0100 |
commit | bc85ba4a9d8b965a330c61c6db577692ad4c4247 (patch) | |
tree | 952bf74f75a079e6e62c3336e1a5ff6bc27a73ed /PKGBUILD | |
parent | bf440f6d0810e6131fd0e6272c4e4337c631628d (diff) | |
download | aur-bc85ba4a9d8b965a330c61c6db577692ad4c4247.tar.gz |
Fix logrotate
Exclude /var/lib/thruk as logrotate doesn't like the permissions there
and there are no logs
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,9 +1,9 @@ -# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org> +# Maintainer: Jonathan Steel <jsteel at archlinux.org> pkgname=thruk _pkgver=2.14-2 pkgver=${_pkgver/-/.} -pkgrel=2 +pkgrel=3 pkgdesc="Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken" arch=('any') url="http://thruk.org" @@ -51,5 +51,8 @@ package() { chown -R 33:33 "$pkgdir"/var/{lib,log}/thruk/ "$pkgdir"/etc/thruk/panorama/ chmod 770 "$pkgdir"/var/lib/thruk/ - chmod 750 "$pkgdir"/var/log/thruk/ + + # Exclude /var/lib/thruk as logrotate doesn't like the permissions there + # and there are no logs + sed -i 's_^/.* _/var/log/thruk/*.log _' "$pkgdir"/etc/logrotate.d/thruk-base } |