diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-02-27 13:51:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 13:51:53 +0100 |
commit | 7824e3e9ac71300d7f5796ca7ab00c3b568f0578 (patch) | |
tree | 020240a469730cb72df9b244dca7a1cd0f9ddfbf /recipes-sota/aktualizr | |
parent | c4aeaff17deb41b03bc9572f82998ddec4e56513 (diff) | |
parent | fce20d1f0ddd883a7bfba00226795dd37d39e1d8 (diff) | |
download | meta-updater-7824e3e9ac71300d7f5796ca7ab00c3b568f0578.tar.gz |
Merge pull request #496 from advancedtelematic/backport/sumo/auto-reboot-etc
Backport/sumo/auto reboot etc
Diffstat (limited to 'recipes-sota/aktualizr')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb | 7 | ||||
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb b/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb index 34460af..0628a61 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb | |||
@@ -11,9 +11,14 @@ require credentials.inc | |||
11 | do_install() { | 11 | do_install() { |
12 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 12 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
13 | install -m 0700 -d ${D}${localstatedir}/sota | 13 | install -m 0700 -d ${D}${localstatedir}/sota |
14 | cp ${SOTA_PACKED_CREDENTIALS} ${D}${localstatedir}/sota/sota_provisioning_credentials.zip | 14 | cp "${SOTA_PACKED_CREDENTIALS}" ${D}${localstatedir}/sota/sota_provisioning_credentials.zip |
15 | # Device should not be able to push data to treehub | 15 | # Device should not be able to push data to treehub |
16 | zip -d ${D}${localstatedir}/sota/sota_provisioning_credentials.zip treehub.json | 16 | zip -d ${D}${localstatedir}/sota/sota_provisioning_credentials.zip treehub.json |
17 | # Device has no use for the API Gateway. Remove if present. See: | ||
18 | # https://github.com/advancedtelematic/ota-plus-server/pull/1913/ | ||
19 | if unzip -l ${D}${localstatedir}/sota/sota_provisioning_credentials.zip api_gateway.url > /dev/null; then | ||
20 | zip -d ${D}${localstatedir}/sota/sota_provisioning_credentials.zip api_gateway.url | ||
21 | fi | ||
17 | fi | 22 | fi |
18 | } | 23 | } |
19 | 24 | ||
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 3b48e58..a8f40d6 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -23,7 +23,7 @@ SRC_URI = " \ | |||
23 | file://aktualizr-serialcan.service \ | 23 | file://aktualizr-serialcan.service \ |
24 | " | 24 | " |
25 | 25 | ||
26 | SRCREV = "2aa9d93ccea09ec327789eecf858de561ef632da" | 26 | SRCREV = "c71ec0a320d85a3e75ba37bff7dc40ad02e9d655" |
27 | BRANCH ?= "master" | 27 | BRANCH ?= "master" |
28 | 28 | ||
29 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |