mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-06 13:56:45 +08:00
d7b0d07c71
Signed-off-by: Simon L <szaimen@e.mail.de>
18 lines
538 B
Bash
18 lines
538 B
Bash
#!/bin/bash
|
|
|
|
# Only start container if database is accessible (needed for backup to work correctly)
|
|
while ! nc -z "$POSTGRES_HOST" 5432; do
|
|
echo "Waiting for database to start..."
|
|
sleep 5
|
|
done
|
|
|
|
# Show wiki if vm.max_map_count is too low
|
|
if [ "$(sysctl -n vm.max_map_count)" -le 65530 ]; then
|
|
echo "max_map_count is too low and needs to be adjusted."
|
|
echo "See https://github.com/nextcloud/all-in-one/discussions/1775 how to change max_map_count"
|
|
fi
|
|
|
|
# Run initial entrypoint
|
|
/usr/local/bin/docker-entrypoint.sh
|
|
|
|
exec "$@"
|