summaryrefslogtreecommitdiff
path: root/debian/rsyslog.preinst
blob: ae2c5f02c9a882201e92e0964f4b75cc36ede784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ "$1" = "install" ] && [ -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#