Update dsn.sh

This commit is contained in:
FusionPBX 2017-05-21 13:56:29 -06:00 committed by GitHub
parent d00fc858f5
commit 22e8196fa4
1 changed files with 13 additions and 2 deletions

View File

@ -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