Subversion Repositories ALCASAR

Rev

Rev 519 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 519 Rev 612
Line 1... Line 1...
1
#/bin/sh
1
#/bin/sh
2
# $Id: alcasar-havp.sh 519 2011-03-25 16:30:32Z stephane $
2
# $Id: alcasar-havp.sh 612 2011-05-22 21:19:27Z richard $
3
 
3
 
4
# alcasar-havp.sh
4
# alcasar-havp.sh
5
# by Rexy
5
# by Rexy
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 21... Line 21...
21
		exit 0
21
		exit 0
22
		;;
22
		;;
23
	--on|-on)	
23
	--on|-on)	
24
		# activation havp
24
		# activation havp
25
		$SED "s/^proxyport =.*/proxyport = 8090/g" /etc/dansguardian/dansguardian.conf
25
		$SED "s/^proxyport =.*/proxyport = 8090/g" /etc/dansguardian/dansguardian.conf
-
 
26
		$SED "s/^WEB_ANTIVIRUS=.*/WEB_ANTIVIRUS=on/g" /usr/local/etc/alcasar.conf
26
		service dansguardian reload
27
		service dansguardian reload
27
		service havp start
28
		service havp start
28
		;;
29
		;;
29
	--off|-off)
30
	--off|-off)
30
		# désactivation du filtrage
31
		# désactivation du filtrage
31
		$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
32
		$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
-
 
33
		$SED "s/^WEB_ANTIVIRUS=.*/WEB_ANTIVIRUS=off/g" /usr/local/etc/alcasar.conf
32
		service dansguardian reload
34
		service dansguardian reload
33
		service havp stop
35
		service havp stop
34
		;;
36
		;;
35
	--update|-update)
37
	--update|-update)
36
		#mise à jour de la base de signature
38
		#mise à jour de la base de signature