Vala vala ;-)
# !/bin/sh
clear
GRAS="\033[1m"
JAUNE="\033[33m"
VERT="\033[32m"
NORMAL="\033[m"
echo -e "${JAUNE}${GRAS}-=== MISE A JOUR DES BASES DE DONNEES SQUIDGUARD ===-"
echo -e
echo -e "${JAUNE}${GRAS}Telechargement des archives des URLs interdites${NORMAL}"
cd /var/lib/squidguard/db/
echo -en "Base Adultes"
wget [
ftp.univ-tlse1.fr] >/dev/null 2>&1
echo -e "\t\t\t${VERT}OK${NORMAL}"
echo -en "Base Warez"
wget [
ftp.univ-tlse1.fr] >/dev/null 2>&1
echo -e "\t\t\t${VERT}OK${NORMAL}"
# La base forums est commentee afin de permettre d'utiliser
# les mails pour yahoo, hotmail et msn
echo -en "Base Forums"
#wget [
ftp.univ-tlse1.fr] >/dev/null 2>&1
echo -e "\t\t\t${VERT}IGNOREE${NORMAL}"
echo -en "Base Publicites"
wget [
ftp.univ-tlse1.fr] >/dev/null 2>&1
echo -e "\t\t\t${VERT}OK${NORMAL}"
echo -e "${JAUNE}${GRAS}"
/etc/init.d/squid stop
echo -e
echo -e "${JAUNE}${GRAS}Decompression des archives${NORMAL}"
tar -zxvf adult.tar.gz >/dev/null 2>&1
echo -e "Adults${VERT}\t\t\t\tOK${NORMAL}"
tar -zxvf forums.tar.gz >/dev/null 2>&1
# La base forums est commentee afin de permettre d'utiliser
# les mails pour yahoo, hotmail et msn
echo -e "Forums${VERT}\t\t\t\tIGNOREE${NORMAL}"
#tar -zxvf publicite.tar.gz >/dev/null 2>&1
echo -e "Publicite${VERT}\t\t\tOK${NORMAL}"
tar -zxvf warez.tar.gz >/dev/null 2>&1
echo -e "Warez${VERT}\t\t\t\tOK${NORMAL}"
rm *.gz
echo -e
echo -en "${JAUNE}${GRAS}Creation des bases de données (patience)${NORMAL}"
/usr/bin/squidGuard -C all
echo -e "${VERT}\tOK${NORMAL}"
chown proxy.proxy * -R
echo -e
_______________________________________________________________
Il vaut mieux mobiliser son intelligence sur des conneries,
que mobiliser sa connerie sur des choses intelligentes.
______________________________________________________________