From 0f925d90dbe708345c9ef6e5f0c57ebbbd3ad0d8 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 7 Apr 2014 23:36:20 +0200 Subject: [PATCH] new: [postgres] add installation of the ``pg_*`` tools. --- precise/postgres/hooks/install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/precise/postgres/hooks/install b/precise/postgres/hooks/install index 8c9443d..37f13ad 100755 --- a/precise/postgres/hooks/install +++ b/precise/postgres/hooks/install @@ -14,6 +14,21 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin EOF +## +## Install 0k-manage for all the pg_* tools +## + +( + if ! [ -d "/opt/apps/0k-manage" ]; then + cd /opt/apps && + git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-manage.git" && + cd /opt/apps/0k-manage && + git checkout 0k/prod/master + fi + + ln -sf /opt/apps/0k-manage/src/bin/* /usr/local/bin/ +) + ## XXXvlab: Shouldn't we use ldap to create a key for each client and ## remove the clear password from here ?