summaryrefslogtreecommitdiff
path: root/debian/rsyslog.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rsyslog.preinst')
-rw-r--r--debian/rsyslog.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/rsyslog.preinst b/debian/rsyslog.preinst
new file mode 100644
index 0000000..18897fc
--- /dev/null
+++ b/debian/rsyslog.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "install" -a -n "$2" ] ; then
+ [ -f /etc/logrotate.d/rsyslog.disabled ] && mv -f /etc/logrotate.d/rsyslog.disabled /etc/logrotate.d/rsyslog
+fi
+
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "5.7.8-1" ; then
+ rm -f /etc/systemd/system/sockets.target.wants/rsyslog.socket
+fi
+
+#DEBHELPER#