Run Borg-UI with a single gunicorn worker (#17445)

This commit is contained in:
CanbiZ (MickLesk)
2026-09-23 16:17:35 +02:00
committed by GitHub
parent e11a07c197
commit ab57fd7f94
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -32,6 +32,14 @@ function update_script() {
exit
fi
if grep -q -- '--workers 2' /etc/systemd/system/borg-ui.service 2>/dev/null; then
msg_info "Reducing Service to a single worker"
sed -i 's/--workers 2/--workers 1/' /etc/systemd/system/borg-ui.service
systemctl daemon-reload
systemctl try-restart borg-ui
msg_ok "Reduced Service to a single worker"
fi
if check_for_gh_release "borg-ui" "karanhudia/borg-ui"; then
msg_info "Stopping Service"
systemctl stop borg-ui