[cron.daily/git_dirty_repo] Pour crier sur les modifs non commitées en git.

This commit is contained in:
Vincent Le Gallic 2013-03-03 08:01:41 +01:00
parent 04b24e1068
commit 5af347cbf9
3 changed files with 19 additions and 0 deletions

View file

@ -17,6 +17,7 @@
<!-- mail de notification de fichiers non synchronises --> <!-- mail de notification de fichiers non synchronises -->
<Path name="/etc/cron.daily/mailWarn_dirtyDarcsRepo"/> <Path name="/etc/cron.daily/mailWarn_dirtyDarcsRepo"/>
<Python name="/etc/cron.daily/git_dirty_repo"/>
<!-- Gestion des secrets --> <!-- Gestion des secrets -->
<Group name="secrets"> <Group name="secrets">

View file

@ -523,6 +523,7 @@
<Group name="crans-nfs-squeeze"> <Group name="crans-nfs-squeeze">
<Group name="crans"/> <Group name="crans"/>
<Group name="crans-nfs"/>
<Group name="ssh"/> <Group name="ssh"/>
<Group name="sudo"/> <Group name="sudo"/>
<Group name="squeeze"/> <Group name="squeeze"/>

View file

@ -0,0 +1,17 @@
# -*- encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0644
header()
notifier_path = "/usr/scripts/utils/git-whatsnew"
default_from = "roots@crans.org"
default_to = "roots@crans.org"
if has("crans-nfs"):
print '%s --repository=/usr/scripts --from="%s" --to="%s"' % (notifier_path, default_from, default_to)
if has("bcfg2"):
print '%s --repository=/var/lib/bcfg2 --from="%s" --to="%s"' % (notifier_path, default_from, default_to)