summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-standalone5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap-standalone b/bootstrap-standalone
index d906cb4..3e80c1f 100755
--- a/bootstrap-standalone
+++ b/bootstrap-standalone
@@ -11,6 +11,7 @@ set -eu
ENVNAME=$USER
BRANCH=master
CURRENCY=$(echo "KUDOS-$USER" | cut -c 1-11)
+PGBINDIR=$(pg_config --bindir)
cd $HOME
@@ -39,9 +40,9 @@ fi
mkdir -p $HOME/sockets
-/usr/lib/postgresql/9.5/bin/postgres --single -D ~/talerdb -k $HOME/sockets -h "" postgres \
+$PGBINDIR/postgres --single -D ~/talerdb -k $HOME/sockets -h "" postgres \
>/dev/null <<< "create database taler"
-/usr/lib/postgresql/9.5/bin/postgres --single -D ~/talerdb -k $HOME/sockets -h "" postgres \
+$PGBINDIR/postgres --single -D ~/talerdb -k $HOME/sockets -h "" postgres \
>/dev/null <<< "create database talercheck"
cat >$HOME/activate <<EOL