From dad4a9daadd3421850897e31f308eb803c7b5c76 Mon Sep 17 00:00:00 2001 From: Christian Monch Date: Thu, 30 Jul 2026 17:27:54 +0200 Subject: [PATCH 1/2] fix: allow `uv` to upgrade dump-things-service This commit allows `uv` to upgrade dump-things-service to the latest version, if no specific version is requested. --- liab_deployments/deploy/dumpthings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liab_deployments/deploy/dumpthings.py b/liab_deployments/deploy/dumpthings.py index 3f71575..84a6e0f 100644 --- a/liab_deployments/deploy/dumpthings.py +++ b/liab_deployments/deploy/dumpthings.py @@ -141,7 +141,7 @@ def _deploy_site( server.shell( name=f'Install dump-things-service {name!r}', commands=[ - f"$HOME/.local/bin/uv tool install {pyarg} {dtarg}" + f"$HOME/.local/bin/uv tool install --upgrade {pyarg} {dtarg}" ], _sudo_user=user_name, ) -- 2.52.0 From 27a0b092b62890e405e51576173d5dd91fccfc27 Mon Sep 17 00:00:00 2001 From: Christian Monch Date: Thu, 30 Jul 2026 17:28:55 +0200 Subject: [PATCH 2/2] fix: use `user_name` in systemd-calls Use `user_name` in systemd-calls instead of _sudo_user. This ensures that `systemctl` can communicate with the bus. --- liab_deployments/operations/user_systemd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liab_deployments/operations/user_systemd.py b/liab_deployments/operations/user_systemd.py index 0f595b6..f3f9c63 100644 --- a/liab_deployments/operations/user_systemd.py +++ b/liab_deployments/operations/user_systemd.py @@ -56,7 +56,7 @@ def run_service( enabled=enabled, daemon_reload=True, user_mode=True, - _sudo_user=user_name, + user_name=user_name, _env={ 'XDG_RUNTIME_DIR': f'/run/user/{user_id}', }, -- 2.52.0