rootless (nightly): set PATH="$BIN:$PATH" before running setup tool

Previously, it was failing with the following error when $BIN is not
present in $PATH:

  + /home/vagrant/bin/dockerd-rootless-setuptool.sh install
  [ERROR] dockerd-rootless.sh needs to be present under $PATH

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda committed 2020-09-10 20:46:40 +09:00
1 parent 2639a23348
commit 42ea9b5816
1 file changed
+1 -1
+1 -1
View File
@@ -350,7 +350,7 @@ exec_setuptool() {
fi
(
set -x
"$BIN/dockerd-rootless-setuptool.sh" install "$@"
PATH="$BIN:$PATH" "$BIN/dockerd-rootless-setuptool.sh" install "$@"
)
}