summaryrefslogtreecommitdiff
path: root/debian/rsyslog.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rsyslog.postinst')
-rw-r--r--debian/rsyslog.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rsyslog.postinst b/debian/rsyslog.postinst
index 7bcc66f..36ffc60 100644
--- a/debian/rsyslog.postinst
+++ b/debian/rsyslog.postinst
@@ -23,6 +23,11 @@ case "$1" in
# Fix permissions of the spool/work directory (Bug: #693099)
chmod 700 /var/spool/rsyslog
+
+ # Clean up temporary syslog.service symlink
+ if [ -d /run/systemd/system ] && dpkg --compare-versions "$2" lt "7.4.1-2" ; then
+ rm -f /run/systemd/system/syslog.service
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)