fix: simplify AZURITE_ACCOUNTS check by removing default account generation

This commit is contained in:
2026-03-24 09:38:52 +01:00
parent 4c66ee38ba
commit a19036f10d

View File

@@ -4,14 +4,8 @@ set -euo pipefail
# Check, if the AZURITE_ACCOUNTS variable is set
if [[ -z "$AZURITE_ACCOUNTS" ]]; then
if [[ -f "/storage/accounts.env" ]]; then
set -a
source "/storage/accounts.env"
set +a
else
# Generate a default account
export AZURITE_ACCOUNTS="devstoreaccount1:$(openssl rand -base64 32)"
fi
echo "Error: AZURITE_ACCOUNTS variable is not set." >&2
exit 1
fi
# Look up the account name from the AZURITE_ACCOUNTS variable, which is in the format "accountName:accountKey1:accountKey2;accountName2:accountKey1:accountKey2"