summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorJonathan Bauer2013-04-25 13:44:01 +0200
committerJonathan Bauer2013-04-25 13:44:01 +0200
commitb21c156252f9300ab9a3b3d9a73ddbce8476336a (patch)
tree11679354ebce3e1c7531944c7d7972db0ff3b78b /remote/modules
parentadd rsyslog conf (diff)
downloadtm-scripts-b21c156252f9300ab9a3b3d9a73ddbce8476336a.tar.gz
tm-scripts-b21c156252f9300ab9a3b3d9a73ddbce8476336a.tar.xz
tm-scripts-b21c156252f9300ab9a3b3d9a73ddbce8476336a.zip
rsyslogd: fix missing directory if it is the first packet built
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/rsyslogd/rsyslogd.build1
1 files changed, 1 insertions, 0 deletions
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