mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
verbose output
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
6e22b364ae
commit
836552e1a7
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue