mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Address review
Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
54c642e787
commit
ed5483500a
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue