mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-30 00:21:42 +00:00
suricate: create and package logdir
This fixes the following error preventing startup: suricata[18771]: 31/7/2018 -- 13:08:21 - <Error> - [ERRCODE: SC_ERR_LOGDIR_CONFIG(116)] - The logging directory "/var/log/suricata/" supplied by /etc/suricata/suricata.yaml (default-log-dir) doesn't exist. Shut> Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -47,6 +47,8 @@ do_install_append () {
|
|||||||
install -m 644 ${WORKDIR}/suricata.yaml ${D}${sysconfdir}/suricata
|
install -m 644 ${WORKDIR}/suricata.yaml ${D}${sysconfdir}/suricata
|
||||||
install -m 0644 ${WORKDIR}/volatiles.03_suricata ${D}${sysconfdir}/default/volatiles/volatiles.03_suricata
|
install -m 0644 ${WORKDIR}/volatiles.03_suricata ${D}${sysconfdir}/default/volatiles/volatiles.03_suricata
|
||||||
|
|
||||||
|
install -d ${D}${logdir}/suricata
|
||||||
|
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
sed -e s:/etc:${sysconfdir}:g \
|
sed -e s:/etc:${sysconfdir}:g \
|
||||||
-e s:/var/run:/run:g \
|
-e s:/var/run:/run:g \
|
||||||
|
|||||||
Reference in New Issue
Block a user