crans_bcfg2/Python/etc/cron.daily/git_dirty_repo

17 lines
475 B
Text

# -*- 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)