diff options
author | Johannes Kirchmair <johannes.kirchmair@sigmatek.at> | 2023-03-16 16:37:24 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-04-04 13:39:46 -0700 |
commit | 356b224344ecb5d509318b9dd6a67bab6f03a8ff (patch) | |
tree | eade10d937f85e5ab200612a5f6010c170fa2701 /meta-webserver | |
parent | 9357ea2698d5d17837b4b4ce13862bfca979a2ce (diff) | |
download | meta-openembedded-356b224344ecb5d509318b9dd6a67bab6f03a8ff.tar.gz |
redirect unwanted error message in nginx install
if we run opkg install nginx on our system (without systemd)
we end up getting the following message in the install process
$ opkg install nginx_1.20.1-r0_core2-64.ipkĀ
...
//var/lib/opkg/info/nginx.postinst: line 3: type: systemd-tmpfiles: not found
this confused some of my coworkers.
as installation also finishes correctly without sytemd-tmpfiles
and not having systemd-tempfiles is not really a problem, I think
we should redirect the message also to /dev/NULL
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc index 944968ab9e..6992a84c79 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx.inc +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc @@ -148,7 +148,7 @@ do_install () { pkg_postinst:${PN} () { if [ -z "$D" ]; then - if type systemd-tmpfiles >/dev/null; then + if type systemd-tmpfiles >/dev/null 2>&1; then systemd-tmpfiles --create elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then ${sysconfdir}/init.d/populate-volatile.sh update |