| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 729 2011-10-08 07:15:58Z franck $
|
2 |
# $Id: alcasar.sh 734 2011-10-12 17:09:24Z 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 971... |
Line 971... |
| 971 |
cp -f $DIR_CONF/virus-fr.html /etc/havp/templates/fr/virus.html
|
971 |
cp -f $DIR_CONF/virus-fr.html /etc/havp/templates/fr/virus.html
|
| 972 |
cp -f $DIR_CONF/virus-en.html /etc/havp/templates/en/virus.html
|
972 |
cp -f $DIR_CONF/virus-en.html /etc/havp/templates/en/virus.html
|
| 973 |
# automatisation de la mise à jour de la base antivirale (toutes les 2 heures)
|
973 |
# automatisation de la mise à jour de la base antivirale (toutes les 2 heures)
|
| 974 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
974 |
$SED "s?^Checks.*?Checks 12?g" /etc/freshclam.conf
|
| 975 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
975 |
$SED "s?^NotifyClamd.*?# NotifyClamd /etc/clamd.conf?g" /etc/freshclam.conf
|
| - |
|
976 |
# Virus database update
|
| 976 |
# on supprime les fichiers '*.cld' (cas d'une mise à jour)
|
977 |
rm -f /var/lib/clamav/*.cld # in case of old database scheme
|
| 977 |
rm -f /var/lib/clamav/*.cld
|
978 |
[ -e /var/lib/clamav/main.cvd ] || /usr/bin/freshclam
|
| 978 |
}
|
979 |
}
|
| 979 |
|
980 |
|
| 980 |
##################################################################################
|
981 |
##################################################################################
|
| 981 |
## param_ulogd function ##
|
982 |
## param_ulogd function ##
|
| 982 |
## - Ulog config for multi-log files ##
|
983 |
## - Ulog config for multi-log files ##
|
| Line 1588... |
Line 1589... |
| 1588 |
mode="install"
|
1589 |
mode="install"
|
| 1589 |
fi
|
1590 |
fi
|
| 1590 |
for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus param_ulogd param_awstats param_dnsmasq BL cron post_install
|
1591 |
for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus param_ulogd param_awstats param_dnsmasq BL cron post_install
|
| 1591 |
do
|
1592 |
do
|
| 1592 |
$func
|
1593 |
$func
|
| 1593 |
# echo "*** 'debug' : end of function $func ***"; read a
|
1594 |
echo "*** 'debug' : end of function $func ***"; read a
|
| 1594 |
done
|
1595 |
done
|
| 1595 |
;;
|
1596 |
;;
|
| 1596 |
-u | --uninstall)
|
1597 |
-u | --uninstall)
|
| 1597 |
if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
|
1598 |
if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
|
| 1598 |
then
|
1599 |
then
|