[cron.daily/git_dirty_repo] Pour crier sur les modifs non commitées en git.
This commit is contained in:
parent
04b24e1068
commit
5af347cbf9
3 changed files with 19 additions and 0 deletions
|
@ -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">
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
17
Python/etc/cron.daily/git_dirty_repo
Normal file
17
Python/etc/cron.daily/git_dirty_repo
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue