summaryrefslogtreecommitdiffhomepage
path: root/tools/installers/head.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/installers/head.sh')
-rwxr-xr-xtools/installers/head.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/installers/head.sh b/tools/installers/head.sh
index 7fc566ebd..a613fcb5b 100755
--- a/tools/installers/head.sh
+++ b/tools/installers/head.sh
@@ -15,7 +15,13 @@
# limitations under the License.
# Install our runtime.
-$(find . -executable -type f -name runsc) install
+runfiles=.
+if [[ -d "$0.runfiles" ]]; then
+ runfiles="$0.runfiles"
+fi
+$(find -L "${runfiles}" -executable -type f -name runsc) install
# Restart docker.
-service docker restart || true
+if service docker status 2>/dev/null; then
+ service docker restart
+fi