Subversion Repositories ALCASAR

Rev

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

Rev 1852 Rev 1862
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1852 2016-05-01 18:46:46Z raphael.pion $ 
2
#  $Id: alcasar.sh 1862 2016-05-03 11:30:31Z 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 1704... Line 1704...
1704
# activation du "chien de garde" (daemon-watchdog) à chaque redémarrage
1704
# activation du "chien de garde" (daemon-watchdog) à chaque redémarrage
1705
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1705
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1706
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
1706
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
1707
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1707
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1708
EOF
1708
EOF
-
 
1709
 
-
 
1710
	cat << EOF > /etc/cron.d/alcasar-update-categories
-
 
1711
# update malware categories every 12 hours
-
 
1712
* 0-23/12 * * * rsync -rv rsync://ftp.ut-capitole.fr/blacklist/dest/malware /etc/dansguardian/lists/blacklists/malware
-
 
1713
EOF
-
 
1714
 
-
 
1715
chown apache:apache /etc/cron.d/alcasar-update-categories
-
 
1716
 
1709
# removing the users crons
1717
# removing the users crons
1710
	rm -f /var/spool/cron/*
1718
	rm -f /var/spool/cron/*
1711
} # End cron
1719
} # End cron
1712
 
1720
 
1713
##################################################################
1721
##################################################################