1 parent 15ee5fe commit 9f3d820Copy full SHA for 9f3d820
1 file changed
knock-watch.sh
@@ -31,7 +31,7 @@ REMOTE_SERVERS="${REMOTE_SERVERS:-knock-knock.net}"
31
32
COMPOSE_PROJECT="${COMPOSE_PROJECT:-knock-knock}"
33
34
-if systemctl list-unit-files knock-monitor.service &>/dev/null | grep -q knock-monitor; then
+if systemctl cat knock-monitor.service &>/dev/null; then
35
MODE=systemd
36
elif docker compose ls 2>/dev/null | grep -q "$COMPOSE_PROJECT"; then
37
MODE=docker
0 commit comments