address review

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-10-30 17:35:16 +01:00
parent b42dea27a2
commit 43412c7b06
2 changed files with 4 additions and 3 deletions

View file

@ -15,5 +15,5 @@ RUN set -ex; \
COPY --chmod=775 start.sh /start.sh
EXPOSE 8080
ENTRYPOINT /start.sh
ENTRYPOINT ["/start.sh"]
CMD ["java","-jar","nextcloud-dlna.jar"]

View file

@ -1,11 +1,12 @@
#!/bin/bash
# Wait for Nextcloud to come online
if [ -n "$NC_DOMAIN" ] && [ "$NC_PORT" ]; then
if [ -n "$NC_DOMAIN" ] && [ -n "$NC_PORT" ]; then
while ! nc -z "$NC_DOMAIN" "$NC_PORT"; do
echo "Waiting for Nextcloud to start..."
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