| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 1875 2016-05-06 15:27:19Z raphael.pion $
|
2 |
# $Id: alcasar.sh 1876 2016-05-06 16:14:56Z 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 1706... |
Line 1706... |
| 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
|
1710 |
# Enabling category update from rsync
|
| 1711 |
cat << EOF > /etc/cron.d/alcasar-update-cat
|
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.
|
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 * * * root /usr/local/bin/alcasar-bl.sh --update_cat > /dev/null 2>&1
|
1713 |
0 */12 * * * root /usr/local/bin/alcasar-bl.sh --update_cat > /dev/null 2>&1
|
| 1714 |
EOF
|
1714 |
EOF
|
| 1715 |
|
1715 |
|
| 1716 |
chmod 644 /etc/cron.d/alcasar-update-cat
|
1716 |
chmod 644 /etc/cron.d/alcasar-update-cat
|