From e1e70c944a21db6d6f89d8dd5597669c78fcd0b7 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 26 Jul 2018 13:38:33 +0200 Subject: [PATCH] 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. --- precise/host/hooks/install.d/70-0k.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 50088a9c..033fca5c 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/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