mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
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:
@@ -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=""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user