From d25175b8b8d107490bbb80cde8145a889da5c595 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 19 Jul 2018 15:16:53 +0200 Subject: [PATCH] new: [host] added installation of ``pgm`` --- precise/host/hooks/install.d/70-0k.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 04f7f7ad..adc8aa40 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