The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/packaging/wrappers/grafana-server

19 lines
455 B

#! /usr/bin/env bash
# Wrapper for the grafana binary
# This file serves as a wrapper for the grafana binary. It ensures we set
# the system-wide Grafana configuration that was bundled with the package as we
# use the binary.
GRAFANA_HOME="${GRAFANA_HOME:-/usr/share/grafana}"
EXECUTABLE="$GRAFANA_HOME/bin/grafana"
if [ ! -x $EXECUTABLE ]; then
echo "$EXECUTABLE not installed or not executable"
exit 5
fi
CMD=server
eval $EXECUTABLE "$CMD" "$@"