fix: suppress benign output during database restoration in installation script

This commit is contained in:
Anish Sarkar 2026-02-27 04:59:12 +05:30
parent d6cb41d130
commit 66d9cd570b

View file

@ -203,7 +203,7 @@ if $MIGRATION_MODE; then
(cd "${INSTALL_DIR}" && ${DC} exec -T \
-e PGPASSWORD="${DB_PASS}" \
db psql -U "${DB_USER}" -d "${DB_NAME}" \
2>"${RESTORE_ERR}") < "${DUMP_FILE}" || true
>/dev/null 2>"${RESTORE_ERR}") < "${DUMP_FILE}" || true
# Surface real errors; ignore benign "already exists" noise from pg_dump headers
FATAL_ERRORS=$(grep -i "^ERROR:" "${RESTORE_ERR}" \