argos/dmp-db-scema/initdb.sh

7 lines
359 B
Bash
Raw Normal View History

2020-05-12 12:10:23 +02:00
psql -d $POSTGRES_DB -U $POSTGRES_USER --set=POSTGRES_USER="$POSTGRES_USER" -f main/DataManagementPlanDB.sql;
2020-04-29 13:03:19 +02:00
for j in $(ls updates); do
for i in $(ls updates/$j/*.sql); do
echo $i
2020-05-12 12:10:23 +02:00
psql --set=ADMIN_USERNAME="$ADMIN_USERNAME" --set=ADMIN_PASSWORD="$ADMIN_PASSWORD" --set=POSTGRES_USER="$POSTGRES_USER" -d $POSTGRES_DB -U $POSTGRES_USER -f $i;
2020-04-29 13:03:19 +02:00
done
done