From c8f2b1394fc497568acbc35f8593ff7b360f9a37 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 3 Oct 2023 17:49:38 +0100 Subject: [PATCH] build: additional logging to migration script --- src/backend/migrate-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/migrate-entrypoint.sh b/src/backend/migrate-entrypoint.sh index 422e073f52..ad8aba40b7 100644 --- a/src/backend/migrate-entrypoint.sh +++ b/src/backend/migrate-entrypoint.sh @@ -25,10 +25,12 @@ if [ -z "${FMTM_DB_NAME}" ]; then exit 1 fi +echo "Crerating default svcfmtm user" # Create default svc user psql "postgresql://${FMTM_DB_USER}:${FMTM_DB_PASSWORD}@${FMTM_DB_HOST}/${FMTM_DB_NAME}" \ -c "INSERT INTO users (id, username, role, mapping_level, tasks_mapped, tasks_validated, tasks_invalidated) \ VALUES (20386219, 'svcfmtm', 'MAPPER', 'BEGINNER', 0, 0, 0) \ ON CONFLICT (id) DO NOTHING;" +echo "User creation complete" exec "$@"