summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Steel2017-05-16 09:01:33 +0100
committerJonathan Steel2017-05-16 09:01:33 +0100
commitbc85ba4a9d8b965a330c61c6db577692ad4c4247 (patch)
tree952bf74f75a079e6e62c3336e1a5ff6bc27a73ed
parentbf440f6d0810e6131fd0e6272c4e4337c631628d (diff)
downloadaur-bc85ba4a9d8b965a330c61c6db577692ad4c4247.tar.gz
Fix logrotate
Exclude /var/lib/thruk as logrotate doesn't like the permissions there and there are no logs
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a6d4de2d159..31284684c62 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue May 16 07:49:49 UTC 2017
+# Tue May 16 08:01:00 UTC 2017
pkgbase = thruk
pkgdesc = Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken
pkgver = 2.14.2
- pkgrel = 2
+ pkgrel = 3
url = http://thruk.org
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 0846827833e..eb25127c49a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}