Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 70 → Rev 71

/scripts/sbin/alcasar-havp.sh
0,0 → 1,39
#/bin/sh
# Gestion Havp / Clamav
SED="/bin/sed -i"
usage="Usage: alcasar-havp.sh -on | -off | -update"
nb_args=$#
args=$1
if [ $nb_args -eq 0 ]
then
nb_args=1
args="-h"
fi
case $args in
-\? | -h* | --h*)
echo "$usage"
exit 0
;;
-on)
# activation havp
$SED "s/^proxyport =.*/proxyport = 8090/g" /etc/dansguardian/dansguardian.conf
service dansguardian reload
service havp start
;;
-off)
# désactivation du filtrage
$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
service dansguardian reload
service havp stop
;;
-update)
#mise à jour de la base de signature
freshclam
;;
*)
echo "Argument inconnu :$1";
echo "$usage"
exit 1
;;
esac
 
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property