diff options
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 461a1d0079..1b11bd4dca 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | |||
@@ -113,11 +113,19 @@ scons_do_install() { | |||
113 | install -m 755 -d ${D}${localstatedir}/lib/${BPN} | 113 | install -m 755 -d ${D}${localstatedir}/lib/${BPN} |
114 | chown ${PN}:${PN} ${D}${localstatedir}/lib/${BPN} | 114 | chown ${PN}:${PN} ${D}${localstatedir}/lib/${BPN} |
115 | 115 | ||
116 | # Log files | 116 | # Create /var/log/mongodb in runtime. |
117 | install -m 755 -d ${D}${localstatedir}/log/${BPN} | 117 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then |
118 | chown ${PN}:${PN} ${D}${localstatedir}/log/${BPN} | 118 | install -d ${D}${nonarch_libdir}/tmpfiles.d |
119 | echo "d ${localstatedir}/log/${BPN} 0755 ${BPN} ${BPN} -" > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf | ||
120 | fi | ||
121 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then | ||
122 | install -d ${D}${sysconfdir}/default/volatiles | ||
123 | echo "d ${BPN} ${BPN} 0755 ${localstatedir}/log/${BPN} none" > ${D}${sysconfdir}/default/volatiles/99_${BPN} | ||
124 | fi | ||
119 | } | 125 | } |
120 | 126 | ||
121 | CONFFILES:${PN} = "${sysconfdir}/mongod.conf" | 127 | CONFFILES:${PN} = "${sysconfdir}/mongod.conf" |
122 | 128 | ||
123 | SYSTEMD_SERVICE:${PN} = "mongod.service" | 129 | SYSTEMD_SERVICE:${PN} = "mongod.service" |
130 | |||
131 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" | ||