Subversion Repositories ALCASAR

Rev

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

Rev 1903 Rev 1905
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1903 2016-05-19 12:14:00Z raphael.pion $ 
2
#  $Id: alcasar.sh 1905 2016-05-19 12:51:40Z raphael.pion $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1699... Line 1699...
1699
15 1 1 * * root $DIR_DEST_BIN/alcasar-clean_radacct > /dev/null 2>&1
1699
15 1 1 * * root $DIR_DEST_BIN/alcasar-clean_radacct > /dev/null 2>&1
1700
EOF
1700
EOF
1701
	cat << EOF > /etc/cron.d/alcasar-watchdog
1701
	cat << EOF > /etc/cron.d/alcasar-watchdog
1702
# activation du "chien de garde" (watchdog) toutes les 3'
1702
# activation du "chien de garde" (watchdog) toutes les 3'
1703
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
1703
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
-
 
1704
0 5 * * 0 root $DIR_DEST_BIN/alcasar-flush_ipset_wl.sh > /dev/null 2>&1
1704
EOF
1705
EOF
1705
# Enabling the watchdog every 18'
1706
# Enabling the watchdog every 18'
1706
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
1707
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
1707
# activation du "chien de garde" (daemon-watchdog) à chaque redémarrage
1708
# activation du "chien de garde" (daemon-watchdog) à chaque redémarrage
1708
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1709
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
Line 1711... Line 1712...
1711
EOF
1712
EOF
1712
 
1713
 
1713
# Enabling category update from rsync
1714
# Enabling category update from rsync
1714
	cat << EOF > /etc/cron.d/alcasar-update_cat
1715
	cat << EOF > /etc/cron.d/alcasar-update_cat
1715
# activation de la mise a jour des categories. Si le fichier /usr/local/etc/update_cat.conf est vide. On ne met pas à jour.
1716
# activation de la mise a jour des categories. Si le fichier /usr/local/etc/update_cat.conf est vide. On ne met pas à jour.
1716
0 */12 * * * root /usr/local/bin/alcasar-bl.sh --update_cat > /dev/null 2>&1
1717
0 */12 * * * root $DIR_DEST_BIN/alcasar-bl.sh --update_cat > /dev/null 2>&1
1717
EOF
1718
EOF
1718
 
1719
 
1719
chmod 644 /etc/cron.d/alcasar-update_cat
1720
chmod 644 /etc/cron.d/alcasar-update_cat
1720
 
1721
 
1721
# removing the users crons
1722
# removing the users crons