diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-18 18:27:27 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-05-23 08:44:41 -0700 |
commit | cd6e2d8f53b45108ae9aa7b2a2988452dff4a2eb (patch) | |
tree | 133614f8b217e0f6ee2ffcf663b58420c4523b8c | |
parent | 9d17f797f39f3bced3973eb2a877f0cfa45f78cf (diff) | |
download | meta-openembedded-cd6e2d8f53b45108ae9aa7b2a2988452dff4a2eb.tar.gz |
influxdb: Do not remove non-existing files
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb index 5301071516..9506d0e55d 100644 --- a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb +++ b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | |||
@@ -38,19 +38,20 @@ USERADD_PACKAGES = "${PN}" | |||
38 | USERADD_PARAM:${PN} = "--system -d /var/lib/influxdb -m -s /bin/nologin influxdb" | 38 | USERADD_PARAM:${PN} = "--system -d /var/lib/influxdb -m -s /bin/nologin influxdb" |
39 | 39 | ||
40 | do_install:prepend() { | 40 | do_install:prepend() { |
41 | rm ${B}/src/${GO_IMPORT}/build.py | 41 | test -e ${B}/src/${GO_IMPORT}/build.py && rm ${B}/src/${GO_IMPORT}/build.py |
42 | rm ${B}/src/${GO_IMPORT}/build.sh | 42 | test -e ${B}/src/${GO_IMPORT}/build.sh && rm ${B}/src/${GO_IMPORT}/build.sh |
43 | rm ${B}/src/${GO_IMPORT}/Dockerfile* | 43 | rm -rf ${B}/src/${GO_IMPORT}/Dockerfile* |
44 | |||
44 | sed -i -e "s#usr/bin/sh#bin/sh#g" ${B}/src/${GO_IMPORT}/scripts/ci/run_perftest.sh | 45 | sed -i -e "s#usr/bin/sh#bin/sh#g" ${B}/src/${GO_IMPORT}/scripts/ci/run_perftest.sh |
45 | } | 46 | } |
46 | 47 | ||
47 | do_install:append() { | 48 | do_install:append() { |
48 | install -d ${D}${sysconfdir}/influxdb | 49 | install -d ${D}${sysconfdir}/influxdb |
49 | install -m 0644 ${WORKDIR}/influxdb.conf ${D}${sysconfdir}/influxdb | 50 | install -m 0644 ${UNPACKDIR}/influxdb.conf ${D}${sysconfdir}/influxdb |
50 | chown -R root:influxdb ${D}${sysconfdir}/influxdb | 51 | chown -R root:influxdb ${D}${sysconfdir}/influxdb |
51 | 52 | ||
52 | install -d ${D}${sysconfdir}/init.d | 53 | install -d ${D}${sysconfdir}/init.d |
53 | install -m 0755 ${WORKDIR}/influxdb ${D}${sysconfdir}/init.d/influxdb | 54 | install -m 0755 ${UNPACKDIR}/influxdb ${D}${sysconfdir}/init.d/influxdb |
54 | 55 | ||
55 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ] ; then | 56 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ] ; then |
56 | install -d ${D}${sysconfdir}/logrotate.d | 57 | install -d ${D}${sysconfdir}/logrotate.d |