chore(install): ADMIN_EMAILS à la place de ALLOWED_EMAILS

This commit is contained in:
Tony AVERTY 2026-10-22 13:40:26 +02:00
parent 10c118496b
commit ae4eaa1e5b

View file

@ -340,9 +340,9 @@ ask_app() {
warn "Domaine invalide (ex. ai.mondomaine.fr)." warn "Domaine invalide (ex. ai.mondomaine.fr)."
done done
local def; def=$(sed -n 's/^ALLOWED_EMAILS=//p' "$SRC_DIR/.env.example" 2>/dev/null | head -n1) local def; def=$(sed -n 's/^ADMIN_EMAILS=//p' "$SRC_DIR/.env.example" 2>/dev/null | head -n1)
while :; do while :; do
ask ALLOWED "Emails Google autorisés (séparés par des virgules)" "$def" ask ALLOWED "Emails administrateurs (séparés par des virgules)" "$def"
[[ $ALLOWED =~ ^[^,[:space:]]+@[^,[:space:]]+(,[^,[:space:]]+@[^,[:space:]]+)*$ ]] && break [[ $ALLOWED =~ ^[^,[:space:]]+@[^,[:space:]]+(,[^,[:space:]]+@[^,[:space:]]+)*$ ]] && break
warn "Format attendu : moi@gmail.com,autre@gmail.com" warn "Format attendu : moi@gmail.com,autre@gmail.com"
done done
@ -603,7 +603,7 @@ PORT=$PORT
HOST=127.0.0.1 HOST=127.0.0.1
GOOGLE_CLIENT_ID=$GOOGLE_ID GOOGLE_CLIENT_ID=$GOOGLE_ID
GOOGLE_CLIENT_SECRET=$GOOGLE_SECRET GOOGLE_CLIENT_SECRET=$GOOGLE_SECRET
ALLOWED_EMAILS=$ALLOWED ADMIN_EMAILS=$ALLOWED
SECRET_KEY=$(openssl rand -hex 32 2>/dev/null || node -e "console.log(require('crypto').randomBytes(32).toString('hex'))") SECRET_KEY=$(openssl rand -hex 32 2>/dev/null || node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
DATA_DIR=$DATA_DIR DATA_DIR=$DATA_DIR
CLAUDE_BIN=$claude_bin CLAUDE_BIN=$claude_bin