Skip to content
Snippets Groups Projects
Commit 7e427632 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Update initdb.sh

parent 25565652
No related branches found
No related tags found
No related merge requests found
Pipeline #28651 passed
......@@ -30,6 +30,7 @@ if [ -d "${SQL_DIR}/admin" ]; then
-v "dbuser=${SYGAL_USER}" \
-v "dbpassword='${SYGAL_PASSWORD}'" \
-f $f
[[ $? -ne 0 ]] && exit 1
done
fi
......@@ -47,6 +48,7 @@ for f in *.sql; do
-v ON_ERROR_STOP=1 \
-v "dbuser=${SYGAL_USER}" \
-f $f
[[ $? -ne 0 ]] && exit 1
done
unset PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD # précaution
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment