1,14 → 1,7 |
#/bin/sh |
# $Id$ |
|
# alcasar-havp.sh |
# by Rexy |
# This script is distributed under the Gnu General Public License (GPL) |
|
# Gestion Havp / Clamav |
|
SED="/bin/sed -i" |
usage="Usage: alcasar-havp.sh {--on or -on} | {--off or -off} | {--update or -update}" |
usage="Usage: alcasar-havp.sh -on | -off | -update" |
nb_args=$# |
args=$1 |
if [ $nb_args -eq 0 ] |
21,19 → 14,19 |
echo "$usage" |
exit 0 |
;; |
--on|-on) |
-on) |
# activation havp |
$SED "s/^proxyport =.*/proxyport = 8090/g" /etc/dansguardian/dansguardian.conf |
service dansguardian reload |
service havp start |
;; |
--off|-off) |
-off) |
# désactivation du filtrage |
$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf |
service dansguardian reload |
service havp stop |
;; |
--update|-update) |
-update) |
#mise à jour de la base de signature |
freshclam |
;; |