summarylogtreecommitdiffstats
path: root/grafana.install
blob: f6ef82a7f506d54fe4c30fac6f8024bc6f3fc95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}

post_upgrade() {
	post_install
}

post_remove() {
	userdel grafana
}