summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorErikas Rudinskas2020-02-21 12:11:01 +0200
committerErikas Rudinskas2020-02-21 12:11:01 +0200
commit8d0c94c01f5d85e6b1583580c0eb147d41202ce6 (patch)
tree3583b1ea76f9c6a78280c9043d78f3b0920e36dc
parent148ffb9593fe6c29f51f85b31c09de28d2858707 (diff)
downloadaur-8d0c94c01f5d85e6b1583580c0eb147d41202ce6.tar.gz
Fix incorrect logs path
-rw-r--r--PKGBUILD4
-rw-r--r--grafana.install2
2 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ac0058d84f2..f49b41e49fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=grafana-bin
_pkgname=grafana
pkgver=6.6.2
-pkgrel=2
+pkgrel=3
pkgdesc="A general purpose dashboard and graph composer. It supports graphite, influxdb or opentsdb - binary version"
url="http://grafana.org"
conflicts=('grafana')
@@ -32,7 +32,7 @@ package() {
install -Dm644 "${srcdir}/grafana.service" "$pkgdir/usr/lib/systemd/system/grafana.service"
cd "${srcdir}/${_pkgname}-${pkgver}"
install -dm755 "${pkgdir}/var/lib/grafana"
- install -dm755 "${pkgdir}/var/log/grafana"
+ install -dm755 "${pkgdir}/var/logs/grafana"
install -Dm755 bin/grafana-server "$pkgdir/usr/bin/grafana-server"
install -Dm755 bin/grafana-cli "$pkgdir/usr/bin/grafana-cli"
sed -i '/^;data = /c\data = /var/lib/grafana' conf/sample.ini
diff --git a/grafana.install b/grafana.install
index f6ef82a7f50..1edcc2ec733 100644
--- a/grafana.install
+++ b/grafana.install
@@ -1,7 +1,7 @@
post_install() {
getent group grafana >/dev/null || groupadd -r grafana
getent passwd grafana >/dev/null || useradd -d /var/lib/grafana -g grafana -r -M -s /bin/false grafana
- chown grafana:grafana /var/{lib,log}/grafana
+ chown grafana:grafana /var/{lib,logs}/grafana
}
post_upgrade() {