summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 3 insertions, 1 deletions
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/"