From: Christian Marangi Date: Wed, 23 Oct 2024 16:38:41 +0000 (+0200) Subject: nginx: mute warning on init.d script enable X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=329d7e4f7859901cebfb095dd2ac0aff50845c14;p=openwrt-packages.git 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 --- diff --git a/net/nginx/files/nginx.init b/net/nginx/files/nginx.init index c84e0496c..012362964 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=""