From b21c156252f9300ab9a3b3d9a73ddbce8476336a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 25 Apr 2013 13:44:01 +0200 Subject: rsyslogd: fix missing directory if it is the first packet built --- remote/modules/rsyslogd/rsyslogd.build | 1 + 1 file changed, 1 insertion(+) (limited to 'remote/modules') diff --git a/remote/modules/rsyslogd/rsyslogd.build b/remote/modules/rsyslogd/rsyslogd.build index c46adb0d..14e6de8b 100644 --- a/remote/modules/rsyslogd/rsyslogd.build +++ b/remote/modules/rsyslogd/rsyslogd.build @@ -20,6 +20,7 @@ post_copy() { local RSL="$(find /usr/lib/ /lib/ -name rsyslog.service | head -1)" [ -z "$RSL" -o ! -e "$RSL" ] && perror "rsyslog.service not found on vorlage" + [ ! -d "$TARGET_BUILD_DIR/etc/systemd/system" ] && mkdir -p "$TARGET_BUILD_DIR/etc/systemd/system" cp -L "$RSL" "$TARGET_BUILD_DIR/etc/systemd/system/" sed -i 's/\/bin\/systemctl/-\/usr\/bin\/systemctl/g' "${TARGET_BUILD_DIR}"/etc/systemd/system/rsyslog.service sed -i 's/^Before=udev/#&/' "${TARGET_BUILD_DIR}"/etc/systemd/system/rsyslog.service -- cgit v1.2.3-55-g7522