Browse Source

new: [docker-host] added ``0k-charm`` installation

It is usually already installed as these scripts are meant to be
used from ``0k-charm`` binary itself. But for hand execution of
the scripts, and update reason, it is a good idea to take care
of it as any other utility.
postgres
Valentin Lab 6 years ago
parent
commit
e1e70c944a
  1. 20
      precise/host/hooks/install.d/70-0k.sh

20
precise/host/hooks/install.d/70-0k.sh

@ -46,6 +46,26 @@ mkdir -p /opt/apps
) )
##
## Install 0k-charm
##
(
if [ -d "/opt/apps/0k-charm" ]; then
cd /opt/apps/0k-charm &&
git checkout master &&
git pull -r
else
cd /opt/apps &&
git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-charm.git"
fi
ln -sfn /opt/apps/0k-charm/bin/charm /usr/local/sbin/
)
apt-get install -y kal-shlib-charm </dev/null
## ##
## Install 0k-charms ## Install 0k-charms
## ##

Loading…
Cancel
Save