[Lunar-commits] <moonbase-other> rsyslog: fix build for sysvinit systems
v4hn
me at v4hn.de
Sun Nov 18 14:50:43 CET 2012
commit 41656215685ac8f80bb494ccb5a9a16ce76fa7cd
Author: v4hn <me at v4hn.de>
Date: Sun, 18 Nov 2012 05:50:43 -0800
URL: https://github.com/lunar-linux/moonbase-other/commit/41656215685ac8f80bb494ccb5a9a16ce76fa7cd
rsyslog: fix build for sysvinit systems
---
utils/rsyslog/BUILD | +4/-2
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/utils/rsyslog/BUILD
+++ b/utils/rsyslog/BUILD
@@ -31,8 +31,10 @@
install -m 644 plugins/ommysql/createDB.sql /usr/share/doc/rsyslog/scripts/mysql/ &&
install -m 644 plugins/ompgsql/createDB.sql /usr/share/doc/rsyslog/scripts/pqsql/ &&
- rm -f /usr/lib/systemd/system/syslog.service
- ln -sf /usr/lib/systemd/system/rsyslog.service /usr/lib/systemd/system/syslog.service &&
+ if [[ -d /usr/lib/systemd/system ]]; then
+ rm -f /usr/lib/systemd/system/syslog.service &&
+ ln -sf /usr/lib/systemd/system/rsyslog.service /usr/lib/systemd/system/syslog.service
+ fi &&
gather_docs doc/rsyslog-example.conf
More information about the Lunar-commits
mailing list