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