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/recipes-httpd/nginx/nginx.inc | |
| 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/recipes-httpd/nginx/nginx.inc')
| -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 () { | |||
| 148 | 148 | ||
| 149 | pkg_postinst:${PN} () { | 149 | pkg_postinst:${PN} () { |
| 150 | if [ -z "$D" ]; then | 150 | if [ -z "$D" ]; then |
| 151 | if type systemd-tmpfiles >/dev/null; then | 151 | if type systemd-tmpfiles >/dev/null 2>&1; then |
| 152 | systemd-tmpfiles --create | 152 | systemd-tmpfiles --create |
| 153 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | 153 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then |
| 154 | ${sysconfdir}/init.d/populate-volatile.sh update | 154 | ${sysconfdir}/init.d/populate-volatile.sh update |
