diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2017-10-25 13:57:11 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2017-10-25 17:35:25 +0200 |
commit | 86032c413ec220a77a66402aeffd627e8f68243f (patch) | |
tree | b9a05350523c043bee47caee6ffba6187d09d05e /recipes-sota/aktualizr/aktualizr-auto-prov.bb | |
parent | eceaca216c73bd188821e111a73723069668e1f3 (diff) | |
download | meta-updater-86032c413ec220a77a66402aeffd627e8f68243f.tar.gz |
Clean up recipes according to Yocto recommendations.
* Use ${libdir} and ${bindir} wherever possible.
* Use rm -f so that tasks are repeatable.
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-auto-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index 48777b2..4f9fe4f 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
@@ -39,8 +39,8 @@ do_install_append() { | |||
39 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 39 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
40 | install -d ${D}/${systemd_unitdir}/system | 40 | install -d ${D}/${systemd_unitdir}/system |
41 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 41 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service |
42 | install -d ${D}/usr/lib/sota | 42 | install -d ${D}${libdir}/sota |
43 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}/usr/lib/sota/sota.toml | 43 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}${libdir}/sota/sota.toml |
44 | 44 | ||
45 | # deploy SOTA credentials | 45 | # deploy SOTA credentials |
46 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then | 46 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then |
@@ -57,6 +57,6 @@ do_install_append() { | |||
57 | 57 | ||
58 | FILES_${PN} = " \ | 58 | FILES_${PN} = " \ |
59 | ${systemd_unitdir}/system/aktualizr.service \ | 59 | ${systemd_unitdir}/system/aktualizr.service \ |
60 | /usr/lib/sota/sota.toml \ | 60 | ${libdir}/sota/sota.toml \ |
61 | /var/sota/sota_provisioning_credentials.zip \ | 61 | /var/sota/sota_provisioning_credentials.zip \ |
62 | " | 62 | " |