aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-12-23 01:04:36 +0100
committerArmin Kuster <akuster808@gmail.com>2017-02-24 19:33:29 +0000
commitecc787c764bcd783886180fa50f459db92f0e11b (patch)
tree9b2d2538f45ac76858f44839a607373d79e6862e
parent08759d3ea8c0057830916c30db68b0c0bcd68f77 (diff)
downloadmeta-openembedded-contrib-ecc787c764bcd783886180fa50f459db92f0e11b.tar.gz
meta-openembedded-contrib-ecc787c764bcd783886180fa50f459db92f0e11b.tar.bz2
meta-openembedded-contrib-ecc787c764bcd783886180fa50f459db92f0e11b.zip
samba: conditionalize sed call for onnode
| sed: can't read .../4.4.5-r0/image/usr/bin/onnode: No such file or directory Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> (cherry picked from commit cc32689a5b55843eeaecda173933fd5f281ec3ff) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/samba/samba_4.4.5.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
index d807351af5..c564f73bea 100644
--- a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
+++ b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
@@ -142,7 +142,9 @@ do_install_append() {
done
# fix file-rdeps qa warning
- sed -i 's:\(#!/bin/\)bash:\1sh:' ${D}${bindir}/onnode
+ if [ -f ${D}${bindir}/onnode ]; then
+ sed -i 's:\(#!/bin/\)bash:\1sh:' ${D}${bindir}/onnode
+ fi
rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log
}