#! /bin/sh set -e ## set -e if [ -z "$INIT_D" ]; then INIT_D=0; fi; if [ -z "$RHEL" ]; then RHEL=0; fi; preuninstall() { if [ "$INIT_D" = "1" ]; then service dovecot stop ||: /sbin/chkconfig --del dovecot else /usr/bin/systemctl stop dovecot.service /usr/bin/systemctl disable dovecot.service fi } ## if [ "$1" = "remove" ]; then preuninstall; fi