diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2019-11-07 21:37:03 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-07 17:43:44 -0800 |
commit | 2462268fed043bedfd4a4418e0494dbd58af83b6 (patch) | |
tree | 28576ad301dde996c3af7df0723db70b6c133e80 | |
parent | bc7972d7b9ef1e9e2ada0bbd7037140d1bc64fe3 (diff) | |
download | meta-openembedded-2462268fed043bedfd4a4418e0494dbd58af83b6.tar.gz |
samba: fix installation for minimal build
| chmod: cannot access '.../image/etc/sudoers.d': No such file or directory
| sed: can't read .../image/usr/bin/samba-tool: No such file or directory
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.10.8.bb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.10.8.bb b/meta-networking/recipes-connectivity/samba/samba_4.10.8.bb index d824eacf9e..4ab8b26c31 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.10.8.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.10.8.bb | |||
@@ -189,15 +189,17 @@ do_install_append() { | |||
189 | sed -i 's:\(#!/bin/\)bash:\1sh:' ${D}${bindir}/onnode | 189 | sed -i 's:\(#!/bin/\)bash:\1sh:' ${D}${bindir}/onnode |
190 | fi | 190 | fi |
191 | 191 | ||
192 | chmod 0750 ${D}${sysconfdir}/sudoers.d | 192 | chmod 0750 ${D}${sysconfdir}/sudoers.d || true |
193 | rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log | 193 | rm -rf ${D}/run ${D}${localstatedir}/run ${D}${localstatedir}/log |
194 | 194 | ||
195 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba-gpupdate | 195 | for f in samba-gpupdate samba_upgradedns samba_spnupdate samba_kcc samba_dnsupdate; do |
196 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_upgradedns | 196 | if [ -f "${D}${sbindir}/$f" ]; then |
197 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_spnupdate | 197 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/$f |
198 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_kcc | 198 | fi |
199 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${sbindir}/samba_dnsupdate | 199 | done |
200 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${bindir}/samba-tool | 200 | if [ -f "${D}${bindir}/samba-tool" ]; then |
201 | sed -i -e 's,${PYTHON},/usr/bin/env python3/,g' ${D}${bindir}/samba-tool | ||
202 | fi | ||
201 | 203 | ||
202 | } | 204 | } |
203 | 205 | ||