aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bartosz Bilas <b.bilas@grinn-global.com>2020-11-16 13:30:35 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-01-05 23:08:40 +0100
commit954ba08d1d4b2fcbe011a662ec483b1d90277581 (patch)
tree49a15326e7f8a4011c86f6894a38e6ef9c348c3a
parent08a3583c4d04ea9d2375c0119b565a99f15ef2d4 (diff)
downloadbuildroot-954ba08d1d4b2fcbe011a662ec483b1d90277581.tar.gz
buildroot-954ba08d1d4b2fcbe011a662ec483b1d90277581.tar.bz2
package/syslog-ng: don't fail if systemd service directory already exists
Add -p argument that ignore that specified directory already exists. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> [yann.morin.1998@free.fr: - split to its own patch - rewrite commit title ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit d2d629ecd8041a21b6c615e221137113837a42c2) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/syslog-ng/syslog-ng.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk
index ed8f0c7120..87e41c11f9 100644
--- a/package/syslog-ng/syslog-ng.mk
+++ b/package/syslog-ng/syslog-ng.mk
@@ -113,7 +113,7 @@ endef
# By default syslog-ng installs a .service that requires a config file at
# /etc/default, so provide one with the default values.
define SYSLOG_NG_INSTALL_INIT_SYSTEMD
- mkdir $(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d
+ mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d
printf '[Install]\nDefaultInstance=default\n' \
>$(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d/buildroot-default-instance.conf
endef