mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
1dbc22d18b
* don't remove grafana-server and grafana-cli binaries from /usr/share/grafana/bin in deb and rpm packages * don't add config overrides in /usr/sbin/grafana-server
20 lines
455 B
Bash
Executable File
20 lines
455 B
Bash
Executable File
#! /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" "$@"
|