From bf303e35fe7c034a59ad1c29e75519783e073195 Mon Sep 17 00:00:00 2001 From: Alexander Zapasnik Date: Tue, 23 Apr 2019 16:41:33 +0300 Subject: [PATCH] #21 Removed hardcoded postgres user from initialization script --- 10.1-2.4-2.5/initdb-pgrouting.sh | 4 ++-- 9.4-2.1-2.0/initdb-pgrouting.sh | 4 ++-- 9.6-2.3-2.3/initdb-pgrouting.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/10.1-2.4-2.5/initdb-pgrouting.sh b/10.1-2.4-2.5/initdb-pgrouting.sh index ecabf4f..1729f27 100755 --- a/10.1-2.4-2.5/initdb-pgrouting.sh +++ b/10.1-2.4-2.5/initdb-pgrouting.sh @@ -1,8 +1,8 @@ #!/bin/sh set -e -# Perform all actions as user 'postgres' -export PGUSER=postgres +# Perform all actions as $POSTGRES_USER +export PGUSER="$POSTGRES_USER" # Add pgRouting Functions to the database psql --dbname="$POSTGRES_DB" <