summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-12-13 14:59:19 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2017-12-13 14:59:19 +0100
commita2662b5ddfda86abfae19aec3aaf1a7c7614613f (patch)
tree80394340265f909152d2e69f27b76c2349b695c0 /recipes-sota/aktualizr/aktualizr-implicit-prov.bb
parent3401d345e42a154fa93859088a7aa02c20933a3e (diff)
downloadmeta-updater-a2662b5ddfda86abfae19aec3aaf1a7c7614613f.tar.gz
Don't run implicit_writer if SOTA_PACKED_CREDENTIALS is not set.
This basically cripples implicit provisioning but at least it bitbakes without error.
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-implicit-prov.bb')
-rw-r--r--recipes-sota/aktualizr/aktualizr-implicit-prov.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
index c8f0741..67bd2c2 100644
--- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
+++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
@@ -25,8 +25,10 @@ do_install() {
25 install -d ${D}${systemd_unitdir}/system 25 install -d ${D}${systemd_unitdir}/system
26 install -m 0644 ${WORKDIR}/aktualizr.service ${D}${systemd_unitdir}/system/aktualizr.service 26 install -m 0644 ${WORKDIR}/aktualizr.service ${D}${systemd_unitdir}/system/aktualizr.service
27 install -d ${D}${libdir}/sota 27 install -d ${D}${libdir}/sota
28 aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ 28 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
29 -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} 29 aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \
30 -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D}
31 fi
30} 32}
31 33
32FILES_${PN} = " \ 34FILES_${PN} = " \