if [ "$BACKUP" == "y" ]; then
 CUR_DATE=`date +%y.%m.%d-%H.%M.%S`
 cp /etc/openwebmail.conf /etc/openwebmail-backup-$CUR_DATE.conf 1>/dev/null 2>&1
fi

# clean
# apache/apache2 auto setup
if  spell_ok  "apache";     then
  LOC="/usr/share/httpd"
elif  spell_ok  "apache-mod_ssl";  then
  LOC="/usr/share/httpsd"
elif  spell_ok  "apache2";  then
  LOC="/usr/share/apache2"
fi


rm -r -f $LOC/cgi-bin/openwebmail 
rm -r -f $LOC/htdocs/openwebmail
# not yet rm -f /etc/pam.d/openwebmail
rm -f /var/log/openwebmail.log
