summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-12-13 15:20:10 +0100
committerGitHub <noreply@github.com>2017-12-13 15:20:10 +0100
commitbf35f62a28acdf55c3d4b07a5e305255b67edebf (patch)
tree80394340265f909152d2e69f27b76c2349b695c0
parent3401d345e42a154fa93859088a7aa02c20933a3e (diff)
parenta2662b5ddfda86abfae19aec3aaf1a7c7614613f (diff)
downloadmeta-updater-bf35f62a28acdf55c3d4b07a5e305255b67edebf.tar.gz
Merge pull request #211 from advancedtelematic/bugfix/implicit-without-creds
Don't run implicit_writer if SOTA_PACKED_CREDENTIALS is not set.
-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} = " \