summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-08-18 00:26:54 +0200
committerMichael Biebl <biebl@debian.org>2014-08-18 00:26:54 +0200
commitd56165f8ec9a8b2b2771128d3a001fa9895b8d47 (patch)
tree79edc29ce9c5389fad3fbfe682758cc3fb43b9d5
parent431d09da707c2ce5d85272c7eae7e8c644da71e1 (diff)
downloadrsyslog-d56165f8ec9a8b2b2771128d3a001fa9895b8d47.tar.gz
Use consistent syntax
-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