VOYEUR=on

# 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


if grep -q "BACKUP=y" /etc/sorcery/local/depends/$SPELL ; then
 message "${MESSAGE_COLOR}$SPELL configuration backup in progress...${DEFAULT_COLOR}"
 CUR_DATE=`date +%y.%m.%d-%H.%M.%S`
 tar -cjvf "$LOC/squirrelmail-config-backup-$CUR_DATE.tar.bz2" $LOC/htdocs/squirrelmail/config 1>/dev/null 2>&1
else
 message "${MESSAGE_COLOR}$SPELL configuration backup skiped.${DEFAULT_COLOR}"
fi
