mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-26 06:43:16 +08:00
mastercontainer - run supervisord directly and not as cmd option
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
b076d5ea1a
commit
12f55056ee
2 changed files with 9 additions and 1 deletions
|
@ -121,6 +121,5 @@ COPY mastercontainer.conf /etc/apache2/sites-available/mastercontainer.conf
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
|
||||||
|
|
||||||
HEALTHCHECK CMD /healthcheck.sh
|
HEALTHCHECK CMD /healthcheck.sh
|
||||||
|
|
|
@ -26,6 +26,12 @@ if [ "$EUID" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check that the CMD is not overwritten nor set
|
||||||
|
if [ "$*" != "" ]; then
|
||||||
|
print_red "Docker run command for AIO is incorrect as a CMD option was given which is not expected."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if socket is available and readable
|
# Check if socket is available and readable
|
||||||
if ! [ -a "/var/run/docker.sock" ]; then
|
if ! [ -a "/var/run/docker.sock" ]; then
|
||||||
print_red "Docker socket is not available. Cannot continue."
|
print_red "Docker socket is not available. Cannot continue."
|
||||||
|
@ -310,4 +316,7 @@ caddy fmt --overwrite /Caddyfile
|
||||||
# Fix caddy log
|
# Fix caddy log
|
||||||
chmod 777 /root
|
chmod 777 /root
|
||||||
|
|
||||||
|
# Start supervisord
|
||||||
|
/usr/bin/supervisord -c /supervisord.conf
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Reference in a new issue