Subversion Repositories ALCASAR

Rev

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

Rev 634 Rev 672
Line 1... Line 1...
1
#/bin/sh
1
#/bin/bash
2
# $Id: alcasar-havp.sh 634 2011-06-13 17:23:46Z richard $
2
# $Id: alcasar-havp.sh 672 2011-07-08 15:34:22Z richard $
3
 
3
 
4
# alcasar-havp.sh
4
# alcasar-havp.sh
5
# by Rexy
5
# by 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
 
-
 
8
# Activation / désactivation antivirus de flux WEB (Havp + LibClamav)
8
# Gestion Havp / Clamav 
9
# Enable / disable of WEB flow antivirus (HAVP + LibClamav)
-
 
10
 
9
CONF_FILE="/usr/local/etc/alcasar.conf"
11
CONF_FILE="/usr/local/etc/alcasar.conf"
10
SED="/bin/sed -i"
12
SED="/bin/sed -i"
11
function av_disable (){
13
function av_disable (){
12
	$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
14
	$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
13
	$SED "s/^WEB_ANTIVIRUS=.*/WEB_ANTIVIRUS=off/g" /usr/local/etc/alcasar.conf
15
	$SED "s/^WEB_ANTIVIRUS=.*/WEB_ANTIVIRUS=off/g" /usr/local/etc/alcasar.conf