mirror of
https://github.com/grafana/grafana.git
synced 2025-07-24 04:12:13 +08:00

* refactor so server is created unless GRAFANA_URL is provided * update documentation * don't swallow errors from the server process
21 lines
424 B
Bash
Executable File
21 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. scripts/grafana-server/variables
|
|
|
|
LICENSE_PATH=""
|
|
|
|
if [ "$1" = "enterprise" ]; then
|
|
if [ "$2" != "dev" ] && [ "$2" != "debug" ]; then
|
|
LICENSE_PATH=$2/license.jwt
|
|
else
|
|
LICENSE_PATH=$3/license.jwt
|
|
fi
|
|
fi
|
|
|
|
if [ "$BASE_URL" != "" ]; then
|
|
echo -e "BASE_URL set, skipping starting server"
|
|
else
|
|
./scripts/grafana-server/start-server $LICENSE_PATH > scripts/grafana-server/server.log
|
|
fi
|
|
|