diff options
author | Thor77 | 2017-01-22 00:05:17 +0100 |
---|---|---|
committer | Thor77 | 2017-01-22 00:15:53 +0100 |
commit | 12352db78da900d14799a69a996f1b4e5dc500e2 (patch) | |
tree | 2baafaaddc8ac34258c1bcb3aef12815f3cc7899 | |
parent | 8106ee0488bb55b3fb897dbcd8dd4c6e3a28299c (diff) | |
download | aur-12352db78da900d14799a69a996f1b4e5dc500e2.tar.gz |
Move logdir-creation into .install
because it requires telegraf-user/group which is only created in
post_install
* Increase pkgrel to 3
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | telegraf.install | 1 |
3 files changed, 4 insertions, 5 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sat Jan 21 22:35:55 UTC 2017 +# Sat Jan 21 23:15:06 UTC 2017 pkgbase = telegraf-bin pkgdesc = An open source agent for collecting metrics and data on the system; Binary release pkgver = 1.1.2 - pkgrel = 2 + pkgrel = 3 url = https://www.influxdata.com/time-series-platform/telegraf/ install = telegraf.install arch = i686 @@ -3,7 +3,7 @@ pkgname=telegraf-bin pkgver=1.1.2 -pkgrel=2 +pkgrel=3 pkgdesc="An open source agent for collecting metrics and data on the system; Binary release" arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://www.influxdata.com/time-series-platform/telegraf/" @@ -26,8 +26,6 @@ source=('telegraf.sysusers' 'telegraf.tmpfiles' 'LICENSE') md5sums=('58cc9edf8fbf07e7d3a0357db78121b1' '9c7a4df3556cab94837c432f5e46cf04' '10a23e7a514f23f0930e1a4254936534') package() { - install -d -m 755 -o telegraf -g telegraf ${pkgdir}/var/log/telegraf - cd $srcdir install -Dm644 telegraf.sysusers "$pkgdir/usr/lib/sysusers.d/telegraf.conf" install -Dm644 telegraf.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/telegraf.conf" diff --git a/telegraf.install b/telegraf.install index 9b8c80ad9c3a..ba7489edd9ed 100644 --- a/telegraf.install +++ b/telegraf.install @@ -3,4 +3,5 @@ post_install() { systemd-sysusers /usr/lib/sysusers.d/telegraf.conf systemd-tmpfiles --create /usr/lib/tmpfiles.d/telegraf.conf + install -d -m 755 -o telegraf -g telegraf /var/log/telegraf } |