altocompta/unit-test/create-dossier-test.sh
2024-12-06 17:32:59 +01:00

15 lines
245 B
Bash
Executable file

#!/bin/bash
export PGCLUSTER=17/main
DOSSIER_TEST=rel91dossier25
FILE_TEST=dossier25.sql
dropdb $DOSSIER_TEST
if [ $? -ne 0 ] ; then
echo cannot drop $DOSSIER_TEST
exit 1
fi
createdb $DOSSIER_TEST
psql -X $DOSSIER_TEST < db/$FILE_TEST