Merge pull request #2458 from alexbelgium/codex/fix-unbound-variable-netbird_datastore_enc_key

Avoid unbound variable for NETBIRD_DATASTORE_ENC_KEY in NetBird init
This commit is contained in:
Alexandre
2026-02-06 15:46:41 +01:00
committed by GitHub

View File

@@ -61,7 +61,7 @@ export AUTH_CLIENT_SECRET="${AUTH_CLIENT_SECRET}"
export AUTH_SUPPORTED_SCOPES="${AUTH_SUPPORTED_SCOPES}"
export AUTH_REDIRECT_URI="https://${DOMAIN}:${DASHBOARD_PORT}/"
export AUTH_SILENT_REDIRECT_URI="https://${DOMAIN}:${DASHBOARD_PORT}/silent"
declare NETBIRD_DATASTORE_ENC_KEY
NETBIRD_DATASTORE_ENC_KEY="${NETBIRD_DATASTORE_ENC_KEY:-}"
CONFIG_FILE="${DATA_PATH}/management.json"
if [[ ! -f "${CONFIG_FILE}" ]]; then