diff options
| -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 |
