Browse Source

new: [docker-host] addind ``0k-docker``

postgres
Valentin Lab 6 years ago
parent
commit
af896cbacd
  1. 21
      precise/host/hooks/install.d/70-0k.sh

21
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 ## Install 0k.io certificate authority
## ##

Loading…
Cancel
Save