projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
712e403
)
nginx: mute warning on init.d script enable
author
Christian Marangi
<ansuelsmth@gmail.com>
Wed, 23 Oct 2024 16:38:41 +0000
(18:38 +0200)
committer
Christian Marangi
<ansuelsmth@gmail.com>
Mon, 4 Nov 2024 10:42:47 +0000
(11:42 +0100)
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>
net/nginx/files/nginx.init
patch
|
blob
|
history
diff --git
a/net/nginx/files/nginx.init
b/net/nginx/files/nginx.init
index c84e0496cfbe1a8c428476d9781f4e88e162db6b..012362964253cb6f35503ab2b0ce187fa5881a30 100644
(file)
--- 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=""