aports/s6/grafana/rc/run

10 lines
388 B
Plaintext
Executable File

#!/bin/execlineb -P
s6-envdir -I /etc/s6/env/redxen.grafana
importas -i CFGFILE CFGFILE
importas -i GRAFANA_HOME GRAFANA_HOME
s6-envdir -i /etc/s6/env/path
emptyenv -p
grafana-server -config $CFGFILE -homepath /usr/share/grafana -cfg:default.paths.data=${GRAFANA_HOME}/data -cfg:default.paths.plugins=${GRAFANA_HOME}/plugins -cfg:default.paths.provisioning=${GRAFANA_HOME}/provisioning