summaryrefslogtreecommitdiff
path: root/gnu/dist/postfix/auxiliary/MacOSX/deactivate-postfix
blob: 8b398b176f9c03b4d8166e6214a408e7c1645e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Written by Gerben Wierda, Sep 2002. I waive every copyright on this and
# I also do not give any warranty.

. ./defines

if [ -e "${PSI}" ]
then
	mv "${PSI}" "${PSIDISABLED}"
fi

# De-activate postfix in /etc/hostconfig
/usr/bin/perl -pi -e 's/POSTFIX=-YES-/POSTFIX=-NO-/g' /etc/hostconfig

/usr/sbin/postfix stop >/dev/null 2>&1