package/syslog-ng: don't fail if systemd service directory already exists
authorBartosz Bilas <b.bilas@grinn-global.com>
Mon, 16 Nov 2020 12:30:35 +0000 (13:30 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 3 Jan 2021 09:01:23 +0000 (10:01 +0100)
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>
package/syslog-ng/syslog-ng.mk

index 241522b70450f523ff8dfcb4405259524c1e7127..b6b5fad7dad28fedb514acb8fc2e2c59f069dcbf 100644 (file)
@@ -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