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 <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi
2024-10-23 18:38:41 +02:00
parent 712e403703
commit 329d7e4f78

View File

@@ -11,7 +11,7 @@ NGINX_UTIL="/usr/bin/nginx-util"
UCI_CONF_TEMPLATE="/etc/nginx/uci.conf.template" UCI_CONF_TEMPLATE="/etc/nginx/uci.conf.template"
LATEST_UCI_CONF_VERSION="1.2" LATEST_UCI_CONF_VERSION="1.2"
eval $("${NGINX_UTIL}" get_env) [ -f "${NGINX_UTIL}" ] && eval $("${NGINX_UTIL}" get_env)
CONF="" CONF=""