/alcasar.sh |
---|
853,6 → 853,8 |
# mode 'proxy transparent local' |
$SED "s?^http_port.*?http_port 127.0.0.1:$SQUID_PORT transparent?g" /etc/squid/squid.conf |
# emplacement et formatage standard des logs |
echo '#logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh' >> /etc/squid/squid.conf |
echo '#logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st "%{Referer}>h" "%{User-Ag' >> /etc/squid/squid.conf |
echo "access_log /var/log/squid/access.log" >> /etc/squid/squid.conf |
# compatibilité des logs avec awstats |
echo "emulate_httpd_log on" >> /etc/squid/squid.conf |
1144,7 → 1146,7 |
# mise à jour des stats de consultation WEB toutes les 30' ## existe en double pour le daily sans l'@IP |
# sans mèl ( > /dev/null 2>&1) |
cat << EOF > /etc/cron.d/awstats |
*/30 * * * * root /var/www/awstats/awstats.pl -config=localhost -update >/dev/null 2>&1 |
*/30 * * * * root $DIR_ACC/awstats/awstats.pl -config=localhost -update >/dev/null 2>&1 |
EOF |
# suppression des fichiers de mots de passe lors d'imports massifs par fichier de plus de 24h |
cat << EOF > /etc/cron.d/clean_import |
/scripts/alcasar-urpmi.sh |
---|
8,6 → 8,7 |
# + test avant sortie |
fic=`cat /etc/product.id` |
VERSION="2010.1" |
old="$IFS" |
IFS="," |
set $fic |
17,10 → 18,10 |
then |
ARCH=`echo $i|cut -d"=" -f2` |
fi |
if [ "`echo $i|grep version|cut -d'=' -f1`" == "version" ] |
then |
VERSION=`echo $i|cut -d"=" -f2` |
fi |
# if [ "`echo $i|grep version|cut -d'=' -f1`" == "version" ] |
# then |
# VERSION=`echo $i|cut -d"=" -f2` |
# fi |
done |
IFS="$old" |
/scripts/sbin/alcasar-dist-upgrade.sh |
---|
14,6 → 14,7 |
urpmi --auto --auto-update |
fic=`cat /etc/product.id` |
old="$IFS" |
IFS="," |
set $fic |
26,12 → 27,12 |
if [ "`echo $i|grep version|cut -d'=' -f1`" == "version" ] |
then |
VERSION=`echo $i|cut -d"=" -f2` |
if [ $VERSION = 2009.0 -o $VERSION = 2009.1 -o $VERSION = 2010.0 ] |
if [ $VERSION == 2009.0 -o $VERSION == 2009.1 -o $VERSION == 2010.0 -o $VERSION == 2010.2 ] |
then |
VERSION="2010.1" |
else |
echo "Désolé, la migration automatique du système ne peut être réalisée depuis une version inférieure à la 2009.0" |
echo "Réalisez une mise à jour manuelle (cf. Doc) !" |
echo "Réalisez une mise à jour manuelle (cf. Doc) !" |
exit 1 |
fi |
fi |