mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-21 22:58:05 +02:00
Add nginx-unit server support
Signed-off-by: Alexander Olofsson <ace@haxalot.com>
This commit is contained in:
parent
dd663d60c6
commit
a11a594a04
4 changed files with 361 additions and 2 deletions
|
@ -82,7 +82,7 @@ if expr "$1" : "apache" 1>/dev/null; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || expr "$1" : "unitd" 1>/dev/null || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
|
||||
uid="$(id -u)"
|
||||
gid="$(id -g)"
|
||||
if [ "$uid" = '0' ]; then
|
||||
|
@ -290,4 +290,8 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
run_path before-starting
|
||||
fi
|
||||
|
||||
if expr "$1" : "unitd" 1>/dev/null; then
|
||||
exec /usr/local/bin/unit-entrypoint.sh "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue