diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 04f7f7a..adc8aa4 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/precise/host/hooks/install.d/70-0k.sh @@ -201,3 +201,21 @@ EOF echo "DEFAULT_COMPOSE_FILE=/etc/compose/compose.yml" >> /etc/compose/local.conf +## +## Install pgm +## + + +( + if ! [ -d "/opt/apps/0k-pgm" ]; then + cd /opt/apps && + git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-pgm.git" && + cd /opt/apps/0k-pgm && + git checkout master + fi + + ln -sf /opt/apps/0k-pgm/bin/* /usr/local/bin/ + apt-get install -y --force-yes pv buffer < /dev/null + require psql || apt-get install -y postgresql-client