Subversion Repositories ALCASAR

Rev

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

Rev 1862 Rev 1863
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1862 2016-05-03 11:30:31Z raphael.pion $ 
2
#  $Id: alcasar.sh 1863 2016-05-03 12:18:07Z 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 1705... Line 1705...
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
 
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
 
1710
 
1717
# removing the users crons
1711
# removing the users crons
1718
	rm -f /var/spool/cron/*
1712
	rm -f /var/spool/cron/*
1719
} # End cron
1713
} # End cron
1720
 
1714