From 9a1425b1371c1eecfb0963f7b25364fcab8a91e6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 23 Nov 2025 01:03:04 +0000 Subject: [PATCH] Fix talkkonnect status detection using systemd service file The status check was showing "Not installed" even after successful installation because it relied on PATH and file checks that weren't working reliably. Changes: - Check for /etc/systemd/system/talkkonnect.service first - This is the most reliable indicator of installation - Systemd service file is created during install and requires root - Falls back to command/file checks if service file doesn't exist This ensures status shows correctly immediately after installation. --- setup_intercom.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup_intercom.sh b/setup_intercom.sh index 171cd40..91a6e57 100755 --- a/setup_intercom.sh +++ b/setup_intercom.sh @@ -69,7 +69,10 @@ check_talkkonnect_status() { local installed=false local running=false - if command -v talkkonnect &>/dev/null || [[ -f "/home/$KIOSK_USER/go/bin/talkkonnect" ]]; then + # Check if systemd service exists (most reliable indicator) + if [[ -f /etc/systemd/system/talkkonnect.service ]] || \ + command -v talkkonnect &>/dev/null || \ + [[ -f "/home/$KIOSK_USER/go/bin/talkkonnect" ]]; then installed=true if systemctl is-active --quiet talkkonnect; then running=true