From d2d629ecd8041a21b6c615e221137113837a42c2 Mon Sep 17 00:00:00 2001 From: Bartosz Bilas Date: Mon, 16 Nov 2020 13:30:35 +0100 Subject: [PATCH] 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 [yann.morin.1998@free.fr: - split to its own patch - rewrite commit title ] Signed-off-by: Yann E. MORIN --- package/syslog-ng/syslog-ng.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk index 241522b704..b6b5fad7da 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 -- 2.30.2