mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 22:46:55 +00:00
14 lines
245 B
Bash
14 lines
245 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Only start container if database is accessible
|
||
|
|
while ! nc -z "$POSTGRES_HOST" 5432; do
|
||
|
|
echo "Waiting for database to start..."
|
||
|
|
sleep 5
|
||
|
|
done
|
||
|
|
|
||
|
|
# Run original entrypoint
|
||
|
|
if ! bash /entrypoint.sh; then
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
exec "$@"
|