summaryrefslogtreecommitdiff
path: root/debian/rsyslog.postinst
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-08-18 02:42:28 +0200
committerMichael Biebl <biebl@debian.org>2014-08-18 02:42:32 +0200
commit2f1642fd1a4dadb6c9961afd792b7bf0811b8b75 (patch)
tree112572f163b2a6cafa26e61a7f2c0300cf00fe95 /debian/rsyslog.postinst
parentb816ea071c15bf13746dd8df4b41a1df53cf2b54 (diff)
downloadrsyslog-2f1642fd1a4dadb6c9961afd792b7bf0811b8b75.tar.gz
Make sure to actually only create the temporary syslog.service symlink on upgrades
... and avoid the usage of readlink.
Diffstat (limited to 'debian/rsyslog.postinst')
-rw-r--r--debian/rsyslog.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rsyslog.postinst b/debian/rsyslog.postinst
index 36ffc60..da1554a 100644
--- a/debian/rsyslog.postinst
+++ b/debian/rsyslog.postinst
@@ -25,7 +25,7 @@ case "$1" in
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
+ if [ -d /run/systemd/system ] && dpkg --compare-versions "$2" lt-nl "7.4.1-2" ; then
rm -f /run/systemd/system/syslog.service
fi
;;