Browse Source

new: [docker-host] fetch and update kal-shlib-* deps

Apt install explicitly dependencies so-as to get updates, if any.

Also, by keeping related dependency fetching code together with the installation
of the intended program, we keep ourselves the possibility to fragment further
these files and/or make appear similarities that might give us hints at
needed factorization.
postgres
Valentin Lab 6 years ago
parent
commit
ac7a582a29
  1. 9
      precise/host/hooks/install.d/70-0k.sh

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

@ -51,6 +51,7 @@ mkdir -p /opt/apps
## ##
( (
apt-get install -y kal-shlib-charm kal-shlib-cache kal-shlib-cmdline </dev/null
if [ -d "/opt/apps/0k-charm" ]; then if [ -d "/opt/apps/0k-charm" ]; then
cd /opt/apps/0k-charm && cd /opt/apps/0k-charm &&
git checkout master && git checkout master &&
@ -64,7 +65,6 @@ mkdir -p /opt/apps
) )
apt-get install -y kal-shlib-charm </dev/null
## ##
## Install 0k-charms ## Install 0k-charms
@ -262,6 +262,13 @@ EOF
fi fi
fi fi
##
## Installation of compose
##
apt-get install kal-shlib-common kal-shlib-pretty kal-shlib-charm kal-shlib-array -y --force-yes </dev/null
if [ -d "/opt/apps/0k-compose" ]; then if [ -d "/opt/apps/0k-compose" ]; then
cd "/opt/apps/0k-compose" && cd "/opt/apps/0k-compose" &&
git pull -r git pull -r

Loading…
Cancel
Save