diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-05-03 12:22:52 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-05-04 14:47:42 +0200 |
commit | f01b2b06c6fb76cd5d83f5e23643a399d7f41606 (patch) | |
tree | 284ed53990b2699c3895310aa681380e47874b71 /recipes-sota/aktualizr/aktualizr-hsm-prov.bb | |
parent | 0c40c88798b9b36eae8af28424899d76ed321758 (diff) | |
download | meta-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-hsm-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-prov.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb index 5f8da3c..290167f 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb | |||
@@ -18,15 +18,15 @@ require environment.inc | |||
18 | require credentials.inc | 18 | require credentials.inc |
19 | 19 | ||
20 | do_install() { | 20 | do_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} --no-root-ca \ | 23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ |
24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_prov.toml -o ${D}${libdir}/sota/conf.d/20-sota.toml -p ${D} |
25 | fi | 25 | fi |
26 | } | 26 | } |
27 | 27 | ||
28 | FILES_${PN} = " \ | 28 | FILES_${PN} = " \ |
29 | ${libdir}/sota/sota.toml \ | 29 | ${libdir}/sota/conf.d/20-sota.toml \ |
30 | " | 30 | " |
31 | 31 | ||
32 | # vim:set ts=4 sw=4 sts=4 expandtab: | 32 | # vim:set ts=4 sw=4 sts=4 expandtab: |