Subversion Repositories ALCASAR

Rev

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

Rev 1925 Rev 1926
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1925 2016-06-04 18:38:51Z richard $ 
2
#  $Id: alcasar.sh 1926 2016-06-05 20:34:25Z richard $ 
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 1711... Line 1711...
1711
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1711
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1712
EOF
1712
EOF
1713
 
1713
 
1714
# Enabling category update from rsync
1714
# Enabling category update from rsync
1715
	cat << EOF > /etc/cron.d/alcasar-rsync_bl
1715
	cat << EOF > /etc/cron.d/alcasar-rsync_bl
1716
# mise a jour automatique des categories de la BL. Si le fichier /usr/local/etc/update_cat.conf est vide, on ne fait rien.
1716
# Automatic update of BL via rsync. The categories are listed in the file '/usr/local/etc/update_cat.conf' (no sync if empty).
1717
0 */12 * * * root $DIR_DEST_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
1718
EOF
1718
EOF
1719
 
1719
 
1720
chmod 644 /etc/cron.d/alcasar-update_cat
-
 
1721
 
-
 
1722
# removing the users crons
1720
# removing the users crons
1723
	rm -f /var/spool/cron/*
1721
	rm -f /var/spool/cron/*
1724
} # End cron
1722
} # End cron
1725
 
1723
 
1726
##################################################################
1724
##################################################################