diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 7c0ee31..50088a9 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 ##