From 22e8196fa4239f54fcb74cbbc5227ae446fb23bd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 21 May 2017 13:56:29 -0600 Subject: [PATCH] Update dsn.sh --- debian/resources/postgresql/dsn.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/resources/postgresql/dsn.sh b/debian/resources/postgresql/dsn.sh index 6ede532..8118564 100644 --- a/debian/resources/postgresql/dsn.sh +++ b/debian/resources/postgresql/dsn.sh @@ -1,7 +1,18 @@ #!/bin/sh -#set the password -database_password= +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ../config.sh + +#set the date +now=$(date +%Y-%m-%d) + +#get the database password +if [ .$database_password = .'random' ]; then + +fi #set PGPASSWORD export PGPASSWORD=$database_password