This commit is contained in:
Vladislav Kunetskiy
2026-11-06 17:30:30 +03:00
parent 470d9d6f1e
commit 5fda36b723
481 changed files with 84873 additions and 57 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
mkdir -p "$ROOT_DIR/secrets"
if [ ! -s "$ROOT_DIR/secrets/grafana.env" ]; then
(umask 077; printf 'GF_SECURITY_ADMIN_PASSWORD=%s\n' "$(openssl rand -hex 16)" > "$ROOT_DIR/secrets/grafana.env")
echo "created secrets/grafana.env"
fi