feat(nginx-vhosts): add support for custom nginx service command

This commit is contained in:
Udi Oron authored and Jose Diaz-Gonzalez committed 2025-06-30 03:22:07 -04:00
1 parent 926176bbb6
commit a331d27945
1 file changed
+6 -2
+6 -2
View File
@@ -729,9 +729,13 @@ fn-nginx-vhosts-nginx-is-running() {
fn-nginx-vhosts-nginx-init-cmd() { fn-nginx-vhosts-nginx-init-cmd() {
declare desc="start nginx for given distros" declare desc="start nginx for given distros"
declare CMD="$1" declare CMD="$1"
local NGINX_INIT_NAME
NGINX_INIT_NAME=nginx if [[ -n "$DOKKU_NGINX_CUSTOM_CMD" ]]; then
$DOKKU_NGINX_CUSTOM_CMD $CMD
return
fi
local NGINX_INIT_NAME=nginx
if fn-nginx-vhosts-uses-openresty; then if fn-nginx-vhosts-uses-openresty; then
NGINX_INIT_NAME=openresty NGINX_INIT_NAME=openresty
fi fi