Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 339 2010-11-23 23:06:33Z richard $
|
2 |
# $Id: alcasar.sh 340 2010-11-24 22:42:29Z 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 963... |
Line 963... |
963 |
# modification du fichier d'initialisation
|
963 |
# modification du fichier d'initialisation
|
964 |
[ -e /etc/init.d/havp.default ] || cp /etc/init.d/havp /etc/init.d/havp.default
|
964 |
[ -e /etc/init.d/havp.default ] || cp /etc/init.d/havp /etc/init.d/havp.default
|
965 |
# ajout de la fonction 'status' (utile pour la gestion du process)
|
965 |
# ajout de la fonction 'status' (utile pour la gestion du process)
|
966 |
$SED "/^HAVP_BIN=/i. /etc/init.d/functions" /etc/init.d/havp
|
966 |
$SED "/^HAVP_BIN=/i. /etc/init.d/functions" /etc/init.d/havp
|
967 |
$SED "s?^[\t ]*echo \"Checking for.*?status havp?g" /etc/init.d/havp
|
967 |
$SED "s?^[\t ]*echo \"Checking for.*?status havp?g" /etc/init.d/havp
|
- |
|
968 |
# on remplace la page d'interception (template)
|
- |
|
969 |
cp -f $DIR_CONF/virus-fr.html /etc/havp/templates/fr/virus.html
|
- |
|
970 |
cp -f $DIR_CONF/virus-en.html /etc/havp/templates/en/virus.html
|
968 |
# mise à jour de la base antivirale de clamav toutes les 2 heures
|
971 |
# mise à jour de la base antivirale de clamav toutes les 2 heures
|
969 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
972 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
970 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
973 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
971 |
}
|
974 |
}
|
972 |
|
975 |
|