verbose output

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-02-12 00:26:12 +01:00
parent 6e22b364ae
commit 836552e1a7

View file

@ -45,7 +45,7 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO
echo "Restoring from database dump." echo "Restoring from database dump."
# Exit if any command fails # Exit if any command fails
set -e set -ex
# Remove old database files # Remove old database files
rm -rf "${DATADIR:?}/"* rm -rf "${DATADIR:?}/"*
@ -56,8 +56,8 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO
# Create new database # Create new database
exec docker-entrypoint.sh postgres & exec docker-entrypoint.sh postgres &
# Wait 2s for creation # Wait 10s for creation
sleep 2s sleep 10s
# Restore database # Restore database
echo "Restoring the database from database dump" echo "Restoring the database from database dump"
@ -70,7 +70,7 @@ if ( [ -f "$DATADIR/PG_VERSION" ] && [ "$PG_MAJOR" != "$(cat "$DATADIR/PG_VERSIO
export PGPORT=5432 export PGPORT=5432
# Don't exit if command fails anymore # Don't exit if command fails anymore
set +e set +ex
fi fi
# Cover the last case # Cover the last case