diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-09 09:17:55 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-09 09:18:27 +0100 |
commit | 20fa0d512e32c54632515b5b78dc429c7906b4f2 (patch) | |
tree | cf2a08978ea9b983634c6565376a67e7af89d9c5 | |
parent | e6d20651b7a153a158221c0f26bad0f2be1ba08d (diff) | |
download | deployment-20fa0d512e32c54632515b5b78dc429c7906b4f2.tar.gz deployment-20fa0d512e32c54632515b5b78dc429c7906b4f2.tar.bz2 deployment-20fa0d512e32c54632515b5b78dc429c7906b4f2.zip |
do not hardcode Postgresql bin location.
-rwxr-xr-x | bootstrap-standalone | 5 |
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 |