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