#!/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
