Skip to content

Commit 122405b

Browse files
authored
Merge pull request #156 from andrewhsu/act
[master] use systemctl is-active to check for containerd
2 parents 8f1a3c9 + f00df1b commit 122405b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containerd.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CONTAINERD_PROXY_COMMIT=82ae3d13e91d062dd4853379fe018638023c8da2
44
CONTAINERD_SHIM_PROCESS_IMAGE=docker.io/docker/containerd-shim-process:ff98a47
55

66
# If containerd is running use that socket instead
7-
ifeq ($(shell systemctl status containerd 2>/dev/null >/dev/null && echo -n "yes"), "yes")
7+
ifeq ("$(shell systemctl is-active containerd)", "active")
88
CONTAINERD_SOCK:=/var/run/containerd/containerd.sock
99
else
1010
CONTAINERD_SOCK:=/var/run/docker/containerd/docker-containerd.sock

0 commit comments

Comments
 (0)