Merge pull request #113 from Skywalker-11/master

Fix syntax in DEBIAN/postrm (fixes #112)
This commit is contained in:
Shawn Iverson 2017-11-11 08:00:29 -05:00 committed by GitHub
commit e559dd8474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ set -e
# unregister the old startup script
update-rc.d -f mailscanner remove
if [ -d '/usr/lib/systemd' && -f '/lib/systemd/system/mailscanner.service' ]; then
if [ -d '/usr/lib/systemd' ] && [ -f '/lib/systemd/system/mailscanner.service' ]; then
systemctl disable mailscanner.service
rm -f /lib/systemd/system/mailscanner.service
fi