summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhuoyun Wei2020-02-08 20:36:53 -0800
committerZhuoyun Wei2020-02-08 20:36:53 -0800
commiteaecbc48ff4658f4c9c083823f757fd9119a0ef0 (patch)
treed972db0295390d8949fb6e345c04f1e9a788e8f0
parent0733cc6f4db86a78d52072428134551c180323c7 (diff)
downloadaur-eaecbc48ff4658f4c9c083823f757fd9119a0ef0.tar.gz
Change default storage path
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c16cb7a48a..54d57e616ca 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = grafana-bin
pkgdesc = A general purpose dashboard and graph composer. It supports graphite, influxdb or opentsdb - binary version
pkgver = 6.6.1
- pkgrel = 2
+ pkgrel = 3
url = http://grafana.org
install = grafana.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 838fe580128..e964a54ed54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=grafana-bin
_pkgname=grafana
pkgver=6.6.1
-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')
@@ -33,6 +33,8 @@ package() {
install -dm755 "${pkgdir}/var/log/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
+ sed -i '/^;logs = /c\logs = /var/logs/grafana' conf/sample.ini
install -Dm644 conf/sample.ini "$pkgdir/etc/${_pkgname}/${_pkgname}.ini"
install -Dm644 conf/defaults.ini "$pkgdir/usr/share/grafana/conf/defaults.ini"
cp -r public scripts tools "$pkgdir/usr/share/grafana/"