Revert "On passe cron.script/bcfg2-report dans le dépôt bcfg2". En fait il est mieux dans /usr/scripts
This reverts commit 6cebaea21a
.
This commit is contained in:
parent
6cebaea21a
commit
0bb2dca92f
3 changed files with 0 additions and 13 deletions
|
@ -8,7 +8,6 @@
|
||||||
<Service name="bcfg2-server"/>
|
<Service name="bcfg2-server"/>
|
||||||
<!-- Mise a jour des statistiques bcfg2 et envoi du mail -->
|
<!-- Mise a jour des statistiques bcfg2 et envoi du mail -->
|
||||||
<Path name="/etc/cron.d/bcfg2-crans"/>
|
<Path name="/etc/cron.d/bcfg2-crans"/>
|
||||||
<Path name="/etc/cron.script/bcfg2-report"/>
|
|
||||||
<Path name="/etc/cron.daily/bcfg2-update-packages-list"/>
|
<Path name="/etc/cron.daily/bcfg2-update-packages-list"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
day=`date '+%d'`
|
|
||||||
day1=$(($day-1))
|
|
||||||
day2=$(($day-2))
|
|
||||||
date=`date '+%Y-%m-'`
|
|
||||||
body=`/usr/sbin/bcfg2-reports -d | grep "${date}$day\|${date}$day1\|${date}$day2" | sort`
|
|
||||||
if [[ "$body" != "" ]]; then
|
|
||||||
echo "$body" | /usr/bin/mail -s "Serveurs non synchronisés avec bcfg2" -a "X-Mailer: bcfg2-reports" roots@crans.org
|
|
||||||
fi
|
|
|
@ -1,3 +0,0 @@
|
||||||
<FileInfo>
|
|
||||||
<Info owner='root' group='root' perms='0755'/>
|
|
||||||
</FileInfo>
|
|
Loading…
Add table
Add a link
Reference in a new issue