diff --git a/debian/resources/postgresql/empty.sh b/debian/resources/postgresql/empty.sh index 5602e73..b203539 100755 --- a/debian/resources/postgresql/empty.sh +++ b/debian/resources/postgresql/empty.sh @@ -4,6 +4,15 @@ db_host=127.0.0.1 db_port=5432 +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh + +#set the database password +export PGPASSWORD=$database_password + #set the date now=$(date +%Y-%m-%d)