Subversion Repositories ALCASAR

Rev

Rev 311 | Rev 315 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 311 Rev 313
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 311 2010-11-07 22:31:52Z richard $ 
2
#  $Id: alcasar.sh 313 2010-11-08 22:41:19Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 876... Line 876...
876
# mode 'proxy transparent local'
876
# mode 'proxy transparent local'
877
	$SED "s?^http_port.*?http_port 127.0.0.1:$SQUID_PORT transparent?g" /etc/squid/squid.conf
877
	$SED "s?^http_port.*?http_port 127.0.0.1:$SQUID_PORT transparent?g" /etc/squid/squid.conf
878
# compatibilité des logs avec awstats
878
# compatibilité des logs avec awstats
879
	$SED "s?^# emulate_httpd_log.*?emulate_httpd_log on?g" /etc/squid/squid.conf
879
	$SED "s?^# emulate_httpd_log.*?emulate_httpd_log on?g" /etc/squid/squid.conf
880
	$SED "s?^access_log.*?access_log /var/log/squid/access.log?g" /etc/squid/squid.conf
880
	$SED "s?^access_log.*?access_log /var/log/squid/access.log?g" /etc/squid/squid.conf
-
 
881
# pour éviter les message d'erreur lors des changement d'état des interfaces réseaux
-
 
882
	$SED "s?^SQUID_AUTO_RELOAD.*?SQUID_AUTO_RELOAD=no?g" /etc/sysconfig/squid
881
# Initialisation du cache de Squid
883
# Initialisation du cache de Squid
882
	/usr/sbin/squid -z
884
	/usr/sbin/squid -z
883
}  # End of param_squid ()
885
}  # End of param_squid ()
884
	
886
	
885
##################################################################
887
##################################################################