mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
14 lines
No EOL
245 B
Bash
14 lines
No EOL
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 "$@" |