From 96bcb9596e85bcee8a208a6756f20762f2a51c95 Mon Sep 17 00:00:00 2001 From: David Ko Date: Wed, 14 Oct 2020 12:08:07 +0800 Subject: [PATCH] Fix #34: use correct chgrp when configuring containerd service file --- scripts/install-prerequisites.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-prerequisites.sh b/scripts/install-prerequisites.sh index 9eaa2f0..2dce315 100755 --- a/scripts/install-prerequisites.sh +++ b/scripts/install-prerequisites.sh @@ -81,7 +81,7 @@ function install_containerd() { sudo groupadd containerd || true sudo mv containerd.service /etc/systemd/system/containerd.service - chgrp_path=$(command -v chgrp || tr -d '\n') + chgrp_path=$(command -v chgrp | tr -d '\n') sudo sed -i -E "s#(ExecStart=/usr/local/bin/containerd)#\1\nExecStartPost=${chgrp_path} containerd /run/containerd/containerd.sock#g" /etc/systemd/system/containerd.service sudo mkdir -p /etc/containerd