2023-10-30 15:52:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Wait for Nextcloud to come online
|
2023-10-30 16:35:16 +00:00
|
|
|
if [ -n "$NC_DOMAIN" ] && [ -n "$NC_PORT" ]; then
|
2023-10-30 15:52:42 +00:00
|
|
|
while ! nc -z "$NC_DOMAIN" "$NC_PORT"; do
|
2023-10-30 16:35:16 +00:00
|
|
|
echo "Waiting for Nextcloud to start on $NC_DOMAIN:$NC_PORT..."
|
2023-10-30 15:52:42 +00:00
|
|
|
sleep 5
|
|
|
|
done
|
2023-10-30 16:35:16 +00:00
|
|
|
echo "Nextcloud found on $NC_DOMAIN:$NC_PORT!"
|
2023-10-30 15:52:42 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Execute CMD
|
|
|
|
exec /__cacert_entrypoint.sh "$@"
|