nextcloud-dlna/start.sh
Simon L 43412c7b06 address review
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-10-30 23:01:14 +01:00

13 lines
345 B
Bash

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