Subversion Repositories ALCASAR

Rev

Rev 865 | Rev 878 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 865 Rev 868
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 865 2012-05-01 17:48:31Z richard $ 
2
#  $Id: alcasar.sh 868 2012-05-04 16:55:09Z 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 1329... Line 1329...
1329
	cat <<EOF > /etc/cron.d/alcasar-clean_log
1329
	cat <<EOF > /etc/cron.d/alcasar-clean_log
1330
# suppression des fichiers de logs de plus d'un an (tous les lundi à 4h30)
1330
# suppression des fichiers de logs de plus d'un an (tous les lundi à 4h30)
1331
30 4 * * 1 root $DIR_DEST_BIN/alcasar-log.sh --clean
1331
30 4 * * 1 root $DIR_DEST_BIN/alcasar-log.sh --clean
1332
EOF
1332
EOF
1333
	cat <<EOF > /etc/cron.d/alcasar-mysql
1333
	cat <<EOF > /etc/cron.d/alcasar-mysql
1334
# export de la base des usagers (tous les lundi à 4h45)
1334
# Contrôle, réparation et export de la base des usagers (tous les lundi à 4h45)
1335
45 4 * * 1 root $DIR_DEST_SBIN/alcasar-mysql.sh --dump
1335
45 4 * * 1 root mysqlcheck --databases $DB_RADIUS -u $DB_USER -p$radiuspwd --auto-repair ; $DIR_DEST_SBIN/alcasar-mysql.sh --dump
1336
EOF
1336
EOF
1337
	cat <<EOF > /etc/cron.d/alcasar-export_log
1337
	cat <<EOF > /etc/cron.d/alcasar-export_log
1338
# export des log squid, firewall et apache (tous les lundi à 5h00)
1338
# export des log squid, firewall et apache (tous les lundi à 5h00)
1339
00 5 * * 1 root $DIR_DEST_BIN/alcasar-log.sh --export
1339
00 5 * * 1 root $DIR_DEST_BIN/alcasar-log.sh --export
1340
EOF
1340
EOF