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-auto-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-auto-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index 6b17114..1a42184 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
@@ -30,12 +30,12 @@ do_install() { | |||
30 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" | 30 | bbwarn "OSTREE_PUSH_CREDENTIALS is ignored. Please use SOTA_PACKED_CREDENTIALS" |
31 | fi | 31 | fi |
32 | 32 | ||
33 | install -d ${D}${libdir}/sota | 33 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
34 | install -d ${D}${localstatedir}/sota | 34 | install -m 0700 -d ${D}${localstatedir}/sota |
35 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 35 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
36 | aktualizr_toml=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-network', 'sota_autoprov_primary.toml', 'sota_autoprov.toml', d)} | 36 | aktualizr_toml=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-network', 'sota_autoprov_primary.toml', 'sota_autoprov.toml', d)} |
37 | 37 | ||
38 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/${aktualizr_toml} ${D}${libdir}/sota/sota.toml | 38 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/${aktualizr_toml} ${D}${libdir}/sota/conf.d/20-sota.toml |
39 | 39 | ||
40 | # deploy SOTA credentials | 40 | # deploy SOTA credentials |
41 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then | 41 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then |
@@ -47,7 +47,7 @@ do_install() { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | FILES_${PN} = " \ | 49 | FILES_${PN} = " \ |
50 | ${libdir}/sota/sota.toml \ | 50 | ${libdir}/sota/conf.d/20-sota.toml \ |
51 | ${localstatedir}/sota \ | 51 | ${localstatedir}/sota \ |
52 | ${localstatedir}/sota/sota_provisioning_credentials.zip \ | 52 | ${localstatedir}/sota/sota_provisioning_credentials.zip \ |
53 | " | 53 | " |