Fix fixtures script

This commit is contained in:
2020-05-14 13:46:55 +02:00
parent ac852baaf6
commit bd123d03e9

View File

@@ -1,6 +1,5 @@
#bin/bash #!/usr/bin/env bash
echo "Start fixtures" awk 'FNR==1{print "--------------------"}1' `dirname $0`/*.sql > ./allSQL.sql
awk 'FNR==1{print "--------------------"}1' ./*.sql > ./allSQL.sql
docker exec -i postgresql_dc-project psql dc-project dc-project -q -b -v "ON_ERROR_STOP=1" < ./allSQL.sql docker exec -i postgresql_dc-project psql dc-project dc-project -q -b -v "ON_ERROR_STOP=1" < ./allSQL.sql
rm ./allSQL.sql rm ./allSQL.sql
echo "End fixtures" echo "End fixtures"