Select Git revision
init.sh 317 B
#!/bin/sh
: ${DB_HOST:=localhost}
: ${DB_NAME:=postgres}
: ${DB_USER:=postgres}
: ${DB_PASSWORD:=password}
# execute database update
cd /opt/toolbox/db
echo "Updating database..."
./database_updater.sh --url jdbc:postgresql://$DB_HOST:5432/$DB_NAME --login $DB_USER --password $DB_PASSWORD
echo "Database updated."