Browse Source

new: [host] added installation of ``pgm``

postgres
Valentin Lab 6 years ago
parent
commit
d25175b8b8
  1. 18
      precise/host/hooks/install.d/70-0k.sh

18
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 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 </dev/null
)
Loading…
Cancel
Save