add logging to database import

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-12-20 17:07:43 +01:00
parent e47b58312a
commit edb616b18c

View file

@ -52,6 +52,10 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO
exit 1 exit 1
fi fi
# Write output to logfile.
exec > >(tee -i "$DUMP_DIR/database-import.log")
exec 2>&1
# Inform # Inform
echo "Restoring from database dump." echo "Restoring from database dump."