From de1c3359bc5b963feda8cb40c2596a4606173d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Fri, 5 Jun 2026 19:46:16 +0300 Subject: [PATCH] fix: delay auth restart response --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index db86a82..a5841fe 100755 --- a/app.py +++ b/app.py @@ -172,10 +172,11 @@ def update_webui_credentials(user: str, password): log_event("info", "auth_config_updated", user=user, backup=backup) if shutil.which("systemctl"): subprocess.Popen( - ["/bin/sh", "-c", "sleep 0.6; systemctl restart warp-webui.service"], + ["/bin/sh", "-c", "sleep 2; systemctl restart warp-webui.service"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, close_fds=True, + start_new_session=True, ) return 200, { "ok": True,