[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

@ -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)