Skip to content

Commit 9f3d820

Browse files
committed
Fix systemd detection in knock-watch.sh using systemctl cat
1 parent 15ee5fe commit 9f3d820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

knock-watch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ REMOTE_SERVERS="${REMOTE_SERVERS:-knock-knock.net}"
3131

3232
COMPOSE_PROJECT="${COMPOSE_PROJECT:-knock-knock}"
3333

34-
if systemctl list-unit-files knock-monitor.service &>/dev/null | grep -q knock-monitor; then
34+
if systemctl cat knock-monitor.service &>/dev/null; then
3535
MODE=systemd
3636
elif docker compose ls 2>/dev/null | grep -q "$COMPOSE_PROJECT"; then
3737
MODE=docker

0 commit comments

Comments
 (0)