summaryrefslogtreecommitdiffstats
path: root/main/clamsmtp/clamsmtp.pre-upgrade
blob: 97d90817be3c3db08c063d5ad261a45299e10cad (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 -H -s /bin/false -D clamav 2>/dev/null
exit 0