Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 335 2010-11-21 22:48:10Z richard $
|
2 |
# $Id: alcasar.sh 337 2010-11-22 23:06:38Z 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 961... |
Line 961... |
961 |
$SED "s?^ENABLECLAMLIB.*?ENABLECLAMLIB true?g" /etc/havp/havp.config
|
961 |
$SED "s?^ENABLECLAMLIB.*?ENABLECLAMLIB true?g" /etc/havp/havp.config
|
962 |
$SED "s?^# LOG_OKS.*?LOG_OKS false?g" /etc/havp/havp.config
|
962 |
$SED "s?^# LOG_OKS.*?LOG_OKS false?g" /etc/havp/havp.config
|
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 |
# mise à jour de la base antivirale de clamav toutes les 2 heures
|
968 |
# mise à jour de la base antivirale de clamav toutes les 2 heures
|
969 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
969 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
970 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
970 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
971 |
}
|
971 |
}
|