diff options
Diffstat (limited to 'tools/installers/head.sh')
-rwxr-xr-x | tools/installers/head.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/installers/head.sh b/tools/installers/head.sh index e6753f8a5..a613fcb5b 100755 --- a/tools/installers/head.sh +++ b/tools/installers/head.sh @@ -15,11 +15,11 @@ # limitations under the License. # Install our runtime. -$(find . -executable -type f -name runsc) install - -# Install all the shims. -find . -executable -type f -executable -name containerd-shim-runsc-v1 -exec cp {} /usr/bin \; -find . -executable -type f -executable -name gvisor-containerd-shim -exec cp {} /usr/bin \; +runfiles=. +if [[ -d "$0.runfiles" ]]; then + runfiles="$0.runfiles" +fi +$(find -L "${runfiles}" -executable -type f -name runsc) install # Restart docker. if service docker status 2>/dev/null; then |