Skip to content

Commit

Permalink
Add path of post upgrade log file to the container output
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 2, 2024
1 parent 8f2a53d commit 9012403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,11 @@ _main() {
fi

# Launch script that does the background post-upgrade tasks
echo "**********************************************************************************************************************"
TIMESTAMP_NOW=$(date +'%Y.%m.%d-%H.%M')
/usr/local/bin/pgautoupgrade-postupgrade.sh "${SCRIPT_OPTIONS}" >"${PGDATA}/${TIMESTAMP_NOW}-pgautoupgrade.log" 2>&1 &
echo "Post upgrade script launched, with output being saved to ${PGDATA}/${TIMESTAMP_NOW}-pgautoupgrade.log in the container"
echo "**********************************************************************************************************************"
fi

# Start PostgreSQL
Expand Down

0 comments on commit 9012403

Please sign in to comment.