From edb616b18cb2c0a617fbc892e0837c44cb382b73 Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 20 Dec 2022 17:07:43 +0100 Subject: [PATCH] add logging to database import Signed-off-by: Simon L --- Containers/postgresql/start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containers/postgresql/start.sh b/Containers/postgresql/start.sh index f2be4fc0..971bb6cc 100644 --- a/Containers/postgresql/start.sh +++ b/Containers/postgresql/start.sh @@ -52,6 +52,10 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO exit 1 fi + # Write output to logfile. + exec > >(tee -i "$DUMP_DIR/database-import.log") + exec 2>&1 + # Inform echo "Restoring from database dump."