summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@here.com>2018-09-24 18:02:30 +0200
committerAnton Gerasimov <tossel@gmail.com>2018-10-01 10:44:50 +0200
commite689954dc9a07f1ceef65c797056f805daad90a9 (patch)
tree0dfbf98077d7701343bdda2f61532f5d4b27db43 /recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb
parent80d25891eb998f19eabd5b589ef3d687dee7ee98 (diff)
downloadmeta-updater-e689954dc9a07f1ceef65c797056f805daad90a9.tar.gz
Fixes for oe-selftestfeat/OTA-719/nodeploy
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb')
-rw-r--r--recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb b/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb
index d964a0a..34460af 100644
--- a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb
+++ b/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb
@@ -4,11 +4,12 @@ LICENSE = "MPL-2.0"
4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" 4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
5 5
6DEPENDS = "aktualizr-native zip-native" 6DEPENDS = "aktualizr-native zip-native"
7ALLOW_EMPTY_${PN} = "1"
7 8
8require credentials.inc 9require credentials.inc
9 10
10do_install() { 11do_install() {
11 if [ -n ${SOTA_PACKED_CREDENTIALS} ]; then 12 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
12 install -m 0700 -d ${D}${localstatedir}/sota 13 install -m 0700 -d ${D}${localstatedir}/sota
13 cp ${SOTA_PACKED_CREDENTIALS} ${D}${localstatedir}/sota/sota_provisioning_credentials.zip 14 cp ${SOTA_PACKED_CREDENTIALS} ${D}${localstatedir}/sota/sota_provisioning_credentials.zip
14 # Device should not be able to push data to treehub 15 # Device should not be able to push data to treehub