diff --git a/.gitignore b/.gitignore index 81f831c..7a18207 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,7 @@ web/node_modules/.cache/ .idea/ .vscode/ !.vscode/extensions.json + +# артефакты Playwright (e2e-прогоны) — локальные +web/test-results/ +web/playwright-report/ diff --git a/deploy/install.sh b/deploy/install.sh index 25e444d..b457c97 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -1154,7 +1154,17 @@ render_all_templates() { # install_cert_refresh копирует обновлённый сертификат TURN и перезапускает LiveKit. install_cert_refresh() { - [ "$TURN_ENABLED" = "true" ] || return 0 + if [ "$TURN_ENABLED" != "true" ]; then + # Встроенный TURN выключен (внешний релей): старый таймер обновления + # сертификата больше не нужен и только путает диагностику. + if [ "$DRY_RUN" != "1" ] && systemctl list-unit-files glchat-cert-refresh.timer >/dev/null 2>&1; then + systemctl disable --now glchat-cert-refresh.timer >/dev/null 2>&1 || true + rm -f /etc/systemd/system/glchat-cert-refresh.timer /etc/systemd/system/glchat-cert-refresh.service /usr/local/sbin/glchat-cert-refresh + systemctl daemon-reload >/dev/null 2>&1 || true + info "таймер обновления сертификата TURN отключён (внешний релей)" + fi + return 0 + fi [ -n "$TURN_CERT_SRC" ] || [ -n "$TURN_CERT_REMOTE" ] || return 0 [ "$DRY_RUN" = "1" ] && return 0