Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2965 2021-07-04 22:15:08Z rexy $
|
2 |
# $Id: alcasar.sh 2967 2021-07-08 09:47:39Z rexy $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
|
5 |
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
# team@alcasar.net
|
7 |
# team@alcasar.net
|
Line 1819... |
Line 1819... |
1819 |
cat <<EOF > /etc/cron.d/alcasar-ticket-clean
|
1819 |
cat <<EOF > /etc/cron.d/alcasar-ticket-clean
|
1820 |
# Remove password files (created when importing users by CSV files) and user's PDF voucher (every hours at 30')
|
1820 |
# Remove password files (created when importing users by CSV files) and user's PDF voucher (every hours at 30')
|
1821 |
30 * * * * root $DIR_DEST_BIN/alcasar-ticket-clean.sh
|
1821 |
30 * * * * root $DIR_DEST_BIN/alcasar-ticket-clean.sh
|
1822 |
EOF
|
1822 |
EOF
|
1823 |
cat <<EOF > /etc/cron.d/alcasar-distrib-updates
|
1823 |
cat <<EOF > /etc/cron.d/alcasar-distrib-updates
|
1824 |
# Update the system (everyday at 3:30 am)
|
1824 |
# Update the system and reboot if needed (everyday at 3:30 am)
|
1825 |
30 3 * * * root /usr/sbin/urpmi --auto-update --auto 2>&1
|
1825 |
30 3 * * * root /usr/sbin/urpmi --auto-update --auto 2>&1 ; /usr/local/bin/alcasar-daemon.sh -after-update
|
1826 |
EOF
|
1826 |
EOF
|
1827 |
cat <<EOF > /etc/cron.d/alcasar-connections-stats
|
1827 |
cat <<EOF > /etc/cron.d/alcasar-connections-stats
|
1828 |
# Connection stats update (accounting). These Perl scripts are from "dialup_admin" (cf. wiki.freeradius.org/Dialup_admin).
|
1828 |
# Connection stats update (accounting). These Perl scripts are from "dialup_admin" (cf. wiki.freeradius.org/Dialup_admin).
|
1829 |
# 'alcasar-tot_stats' : aggregate the daily connections of users and write it in the table 'totacct' (everyday at 1:01 pm)
|
1829 |
# 'alcasar-tot_stats' : aggregate the daily connections of users and write it in the table 'totacct' (everyday at 1:01 pm)
|
1830 |
# 'alcasar-monthly_tot_stat' : aggregate the monthly connections of users and write it in table 'mtotacct' (everyday at 1h05 pm)
|
1830 |
# 'alcasar-monthly_tot_stat' : aggregate the monthly connections of users and write it in table 'mtotacct' (everyday at 1h05 pm)
|