11 lines
310 B
Bash
Executable file
11 lines
310 B
Bash
Executable file
#/bin/sh
|
|
mkdir run && cp -r $GRAFANA_PATH/share/grafana/* run/
|
|
mkdir run/prometheus
|
|
|
|
cd run
|
|
|
|
nix-build "<nixpkgs>" -A grafana -o grafana
|
|
nix-build "<nixpkgs>" -A prometheus -o prometheus/prometheus
|
|
echo -n "enter new admin password: "
|
|
read passwd
|
|
./grafana/bin/grafana cli admin reset-admin-password "$passwd"
|