summaryrefslogtreecommitdiffstats
path: root/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-sota/rvi-sota-client/rvi-sota-client_git.bb')
-rw-r--r--recipes-sota/rvi-sota-client/rvi-sota-client_git.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
index 9a7ec10..a9a9c2c 100644
--- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
+++ b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
@@ -21,7 +21,7 @@ FILES_${PN} = " \
21 ${bindir}/system_info.sh \ 21 ${bindir}/system_info.sh \
22 ${sysconfdir}/sota_client.version \ 22 ${sysconfdir}/sota_client.version \
23 ${sysconfdir}/sota_certificates \ 23 ${sysconfdir}/sota_certificates \
24 ${systemd_unitdir}/system/sota_client.service \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota_client.service', '', d)} \
25 ${bindir}/sota_ostree.sh \ 25 ${bindir}/sota_ostree.sh \
26 " 26 "
27 27
@@ -134,8 +134,10 @@ do_install() {
134 install -m 0755 run/system_info.sh ${D}${bindir} 134 install -m 0755 run/system_info.sh ${D}${bindir}
135 install -m 0755 run/sota_ostree.sh ${D}${bindir} 135 install -m 0755 run/sota_ostree.sh ${D}${bindir}
136 136
137 install -d ${D}${systemd_unitdir}/system 137 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
138 install -c ${S}/run/sota_client.service ${D}${systemd_unitdir}/system 138 install -d ${D}${systemd_unitdir}/system
139 install -c ${S}/run/sota_client.service ${D}${systemd_unitdir}/system
140 fi
139 141
140 install -d ${D}${sysconfdir} 142 install -d ${D}${sysconfdir}
141 install -c ${S}/run/sota_certificates ${D}${sysconfdir} 143 install -c ${S}/run/sota_certificates ${D}${sysconfdir}