aboutsummaryrefslogtreecommitdiffstats
path: root/community/clamsmtp/clamsmtp.pre-upgrade
blob: c397bfc382d1d9dd4bfb67e8e22f71a4758e44ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

old=/etc/conf.d/clamsmtp
new=/etc/conf.d/clamsmtpd

if [ -f "$old" ] && [ ! -f "$new" ]; then
	mv "$old" "$new"
	echo " *"
	echo " * NOTICE: $old was renamed to $new"
	echo " *"
fi

addgroup -S clamav 2>/dev/null
adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2>/dev/null

exit 0