]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: don't use @mkdir_p@ substitution for systemd service file
authorVincent Bernat <vincent@bernat.im>
Tue, 19 Dec 2017 13:03:59 +0000 (14:03 +0100)
committerVincent Bernat <vincent@bernat.im>
Tue, 19 Dec 2017 13:05:51 +0000 (14:05 +0100)
It is the path to the host mkdir, not to the target mkdir. Just use
/bin/mkdir.

edit.am
src/daemon/lldpd.service.in

diff --git a/edit.am b/edit.am
index ade52ce1b8819f24734d88a2549612fd561c6282..e531590b9cc659c7aca0d99a476783886b8fbfb6 100644 (file)
--- a/edit.am
+++ b/edit.am
@@ -9,7 +9,6 @@ edit = $(SED) \
         -e 's|@includedir[@]|$(includedir)|g' \
         -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
         -e 's|@prefix[@]|$(prefix)|g' \
-        -e 's|@mkdir_p[@]|$(mkdir_p)|g' \
         -e 's|@VERSION[@]|$(VERSION)|g' \
         -e 's|@PACKAGE[@]|$(PACKAGE)|g' \
         -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
index fdb7338f1dd6fea0fc7e675205a7a43eccd5451e..6e1cff8ae0ba67309efe21817fab4effb03936bb 100644 (file)
@@ -9,7 +9,7 @@ Type=notify
 NotifyAccess=main
 EnvironmentFile=-/etc/default/lldpd
 EnvironmentFile=-/etc/sysconfig/lldpd
-ExecStartPre=@mkdir_p@ @PRIVSEP_CHROOT@
+ExecStartPre=/bin/mkdir @PRIVSEP_CHROOT@
 ExecStart=@sbindir@/lldpd $DAEMON_ARGS $LLDPD_OPTIONS
 Restart=on-failure
 PrivateTmp=yes