summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/rsyslog.postrm2
-rw-r--r--debian/rsyslog.preinst2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/rsyslog.postrm b/debian/rsyslog.postrm
index e50a4f0..f418ca3 100644
--- a/debian/rsyslog.postrm
+++ b/debian/rsyslog.postrm
@@ -6,7 +6,7 @@ if [ "$1" = "remove" ]; then
[ -f /etc/logrotate.d/rsyslog ] && mv -f /etc/logrotate.d/rsyslog /etc/logrotate.d/rsyslog.disabled
fi
-if [ "$1" = "purge" -o "$1" = "disappear" ]; then
+if [ "$1" = "purge" ] || [ "$1" = "disappear" ]; then
[ -f /etc/logrotate.d/rsyslog.disabled ] && rm -f /etc/logrotate.d/rsyslog.disabled
fi
diff --git a/debian/rsyslog.preinst b/debian/rsyslog.preinst
index 18897fc..ae2c5f0 100644
--- a/debian/rsyslog.preinst
+++ b/debian/rsyslog.preinst
@@ -2,7 +2,7 @@
set -e
-if [ "$1" = "install" -a -n "$2" ] ; then
+if [ "$1" = "install" ] && [ -n "$2" ] ; then
[ -f /etc/logrotate.d/rsyslog.disabled ] && mv -f /etc/logrotate.d/rsyslog.disabled /etc/logrotate.d/rsyslog
fi