forked from norman/fusionpbx-install.sh-github-mirror
Update dsn.sh
This commit is contained in:
15
debian/resources/postgresql/dsn.sh
vendored
15
debian/resources/postgresql/dsn.sh
vendored
@@ -1,7 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#set the password
|
#move to script directory so all relative paths work
|
||||||
database_password=
|
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
|
#set PGPASSWORD
|
||||||
export PGPASSWORD=$database_password
|
export PGPASSWORD=$database_password
|
||||||
|
|||||||
Reference in New Issue
Block a user