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