From e75bc054214c67ab8ae747061a3c910f9d86ff44 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 May 2026 03:48:08 +0000 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20ALLOWED=5FEXTS=20idempotent=20pf?= =?UTF-8?q?legen=20=E2=80=94=20erg=C3=A4nzt=20'webm'=20falls=20fehlt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/install.sh b/deploy/install.sh index dd473c0..a285c04 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -52,6 +52,16 @@ elif ! grep -q "^SESSION_SECRET=" "$APP_DIR/lxc-frontend/.env"; then echo " SESSION_SECRET nachgetragen." fi +# ALLOWED_EXTS sicherstellen, dass 'webm' für Browser-Aufnahmen drin ist +if grep -q "^ALLOWED_EXTS=" "$APP_DIR/lxc-frontend/.env"; then + if ! grep -E "^ALLOWED_EXTS=.*\bwebm\b" "$APP_DIR/lxc-frontend/.env" >/dev/null; then + sed -i 's|^ALLOWED_EXTS=\(.*\)$|ALLOWED_EXTS=\1,webm|' "$APP_DIR/lxc-frontend/.env" + echo " ALLOWED_EXTS um 'webm' ergänzt (für Mikrofon-Aufnahmen)." + fi +else + echo "ALLOWED_EXTS=mp3,wav,m4a,mp4,ogg,flac,webm" >> "$APP_DIR/lxc-frontend/.env" +fi + mkdir -p /var/lib/voice-agent/uploads /var/lib/voice-agent/results chown -R "$APP_USER:$APP_USER" /var/lib/voice-agent