Subversion Repositories ALCASAR

Rev

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

Rev 1873 Rev 1874
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1873 2016-05-05 10:31:32Z richard $ 
2
#  $Id: alcasar.sh 1874 2016-05-06 14:43:52Z 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
# Enabling category update from rsync
-
 
1711
	cat << EOF > /etc/cron.d/alcasar-update-cat
-
 
1712
# activation de la mise a jour des categories. Si le fichier /usr/local/etc/update_cat.conf est vide. On ne met pas à jour.
-
 
1713
0 */12 * * * /usr/local/bin/alcasar-bl.sh --update_cat > /dev/null 2>&1
-
 
1714
EOF
1710
 
1715
 
1711
touch /etc/cron.d/alcasar-update-cat
-
 
1712
chown root:apache /etc/cron.d/alcasar-update-cat
-
 
1713
chmod 660 /etc/cron.d/alcasar-update-cat
1716
chmod 644 /etc/cron.d/alcasar-update-cat
1714
 
1717
 
1715
# removing the users crons
1718
# removing the users crons
1716
	rm -f /var/spool/cron/*
1719
	rm -f /var/spool/cron/*
1717
} # End cron
1720
} # End cron
1718
 
1721