From 78f17614e735220ad733cdcc03f253a461ca6a10 Mon Sep 17 00:00:00 2001 From: uefigs139 Date: Wed, 18 Feb 2026 08:48:07 -0500 Subject: [PATCH] fix: use robust systemd service detection in updater --- install/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/update.sh b/install/update.sh index a50d10ba0..cea32ff21 100755 --- a/install/update.sh +++ b/install/update.sh @@ -108,7 +108,8 @@ if [ -z "$BRANCH" ]; then [ "$BRANCH" = "HEAD" ] && BRANCH="main" fi -if ! systemctl list-unit-files --type=service | grep -q "^${SERVICE_NAME}\.service"; then +load_state="$(systemctl show "$SERVICE_NAME" --property=LoadState --value 2>/dev/null || true)" +if [ -z "$load_state" ] || [ "$load_state" = "not-found" ]; then die "Service not found: ${SERVICE_NAME}.service" fi