aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamsmtp/clamsmtp.pre-upgrade
blob: c673e278ec234dfd4ce049fdb33d4e9ab973738e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

adduser -S -H -s /bin/false -D -g clamav clamav 2>/dev/null
exit 0