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