Address review

Signed-off-by: Simon L <szaimen@e.mail.de>
Co-Authored-By: Zoey <zoey@z0ey.de>
This commit is contained in:
Simon L 2023-01-02 18:24:17 +01:00
parent 54c642e787
commit ed5483500a
2 changed files with 4 additions and 4 deletions

View file

@ -251,7 +251,7 @@ RUN set -ex; \
chmod +x /notify.sh && \ chmod +x /notify.sh && \
chmod +x /notify-all.sh && \ chmod +x /notify-all.sh && \
chmod +x /activate-collabora.sh && \ chmod +x /activate-collabora.sh && \
chmod +x healthcheck.sh chmod +x /healthcheck.sh
RUN set -ex; \ RUN set -ex; \
mkdir /mnt/ncdata; \ mkdir /mnt/ncdata; \
@ -265,4 +265,4 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd
USER root USER root
ENTRYPOINT ["/start.sh"] ENTRYPOINT ["/start.sh"]
HEALTHCHECK CMD /healthcheck.sh HEALTHCHECK CMD sudo -E -u www-data bash /healthcheck.sh

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
sudo -u www-data nc -z "$POSTGRES_HOST" 5432 || exit 0 nc -z "$POSTGRES_HOST" 5432 || exit 0
if ! sudo -u www-data nc -z localhost 9000 || ! sudo -u www-data nc -z localhost 7867; then if ! nc -z localhost 9000 || ! nc -z localhost 7867; then
exit 1 exit 1
fi fi