From af896cbacde4f36b7ece0d2b1bc5304bf4cf7ca9 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 20 Jul 2018 16:31:35 +0200 Subject: [PATCH] new: [docker-host] addind ``0k-docker`` --- precise/host/hooks/install.d/70-0k.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 7c0ee315..50088a9c 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -98,6 +98,27 @@ mkdir -p /opt/apps } ) +## +## Install 0k-docker +## + +( + if [ -d "/opt/apps/0k-docker" ]; then + cd /opt/apps/0k-docker && + git checkout master && + git pull -r + else + cd /opt/apps && + git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-docker" + fi + + ln -sfn /opt/apps/0k-docker/bin/* /usr/local/sbin/ + ## in update, will remove broken links to binaries that were removed + find -L /usr/local/sbin -maxdepth 1 -type l -delete +) + + + ## ## Install 0k.io certificate authority ##