summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-05-03 12:22:52 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-05-04 14:47:42 +0200
commitf01b2b06c6fb76cd5d83f5e23643a399d7f41606 (patch)
tree284ed53990b2699c3895310aa681380e47874b71 /recipes-sota/aktualizr/aktualizr-implicit-prov.bb
parent0c40c88798b9b36eae8af28424899d76ed321758 (diff)
downloadmeta-updater-f01b2b06c6fb76cd5d83f5e23643a399d7f41606.tar.gz
Update aktualizr config to use default locations.
Fix permissions, drop explicit aktualizr dependency, put everything in /usr/lib/sota/conf.d, rename with numeric prefixes to make precedence more clear.
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-implicit-prov.bb')
-rw-r--r--recipes-sota/aktualizr/aktualizr-implicit-prov.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
index cf3d22c..2f9980a 100644
--- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
+++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb
@@ -18,15 +18,15 @@ require environment.inc
18require credentials.inc 18require credentials.inc
19 19
20do_install() { 20do_install() {
21 install -d ${D}${libdir}/sota 21 install -m 0700 -d ${D}${libdir}/sota/conf.d
22 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then 22 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
23 aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ 23 aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \
24 -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} 24 -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/conf.d/20-sota.toml -p ${D}
25 fi 25 fi
26} 26}
27 27
28FILES_${PN} = " \ 28FILES_${PN} = " \
29 ${libdir}/sota/sota.toml \ 29 ${libdir}/sota/conf.d/20-sota.toml \
30 ${libdir}/sota/root.crt \ 30 ${libdir}/sota/root.crt \
31 " 31 "
32 32