From 329d7e4f7859901cebfb095dd2ac0aff50845c14 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 23 Oct 2024 18:38:41 +0200 Subject: [PATCH] nginx: mute warning on init.d script enable Mute warning on procd init.d script enable as nginx_util is tried to be called from /usr/bin host system. Limit it to be called only if nginx-util is present. Signed-off-by: Christian Marangi --- net/nginx/files/nginx.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nginx/files/nginx.init b/net/nginx/files/nginx.init index c84e0496cf..0123629642 100644 --- a/net/nginx/files/nginx.init +++ b/net/nginx/files/nginx.init @@ -11,7 +11,7 @@ NGINX_UTIL="/usr/bin/nginx-util" UCI_CONF_TEMPLATE="/etc/nginx/uci.conf.template" LATEST_UCI_CONF_VERSION="1.2" -eval $("${NGINX_UTIL}" get_env) +[ -f "${NGINX_UTIL}" ] && eval $("${NGINX_UTIL}" get_env) CONF="" -- 2.30.2