summaryrefslogtreecommitdiffstats
path: root/mail/milter-bogom/pkg-install
blob: a3fdc9b28cb5412dfb1f73376d5e98a6c4ab34ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ "$2" != "POST-INSTALL" ]
then
	exit 0;
fi

# check if bogomilter user exists
pw user show bogomilter > /dev/null 2>&1

if [ $? != 0 ]
then
	echo "===>  Adding user bogomilter"
	pw useradd bogomilter -u 174 -c "milter-bogom" -s /sbin/nologin \
	-d /nonexistent
else
	echo "===>  Using existing user bogomilter" 
fi
OpenPOWER on IntegriCloud