daily autocommits with etckeeper/hg cause cron emails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
etckeeper (Debian) |
Fix Released
|
Unknown
|
|||
etckeeper (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez |
Bug Description
Binary package hint: etckeeper
I have etckeeper configured with a near-default configuration except that I am using hg, not bzr.
When a daily autocommit occurs with changes present, the following is emailed to root by cron:
/etc/cron.
No username found, using 'root@hostname' instead
This is hg reporting that it is falling back to an autodetected username for the commit. I propose that this be fixed like this:
--- etckeeper_
+++ /etc/cron.
@@ -2,6 +2,9 @@
set -e
if [ -x /usr/sbin/etckeeper ] && [ -e /etc/etckeeper/
. /etc/etckeeper/
+ if [ "$VCS" = hg ]; then
+ export HGUSER=
+ fi
if [ "$AVOID_
if etckeeper unclean; then
etckeeper commit "daily autocommit" >/dev/null
Related branches
Changed in etckeeper (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in etckeeper (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in etckeeper (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Triaged → In Progress |
Changed in etckeeper (Debian): | |
status: | Unknown → New |
Changed in etckeeper (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package etckeeper - 0.37ubuntu1
---------------
etckeeper (0.37ubuntu1) karmic; urgency=low
* Merge from debian unstable, remaining changes: d/50vcs- commit: Avoid etckeeper commit failure if 'hostname -f'
- etckeeper.conf, debian/control: default to bzr
* debian/postinst: Do the initial commit at installation time (LP: #297920)
* commit.
fails (LP: #377265)
* debian/cron.daily: Avoid cron emails with daily autocommits if VCS=hg
(LP: #364344)
etckeeper (0.37) unstable; urgency=low
* Make postinst check for the configured VCS before trying to run
etckeeper init. Closes: #530497
* Update French debconf translation. Closes: #530795
* Fix typo in cruft file. Closes: #530819
* Update Portuguese debconf translation. Closes: #528109
* Update German debconf translation. Closes: #532346
etckeeper (0.36) unstable; urgency=low
* Add cruft ignore file. Closes: #522513
* Update Japanese debconf translation. Closes: #527921
* Update Swedish debconf translation. Closes: #528575
* Update Russian debconf translation. Closes: #528798
etckeeper (0.35) unstable; urgency=low
* Make etckeeper uninit -f disable the prompt.
* Uninit on purge, guarded by a debconf prompt. Closes: #527218
-- Thierry Carrez <email address hidden> Tue, 16 Jun 2009 11:02:03 +0200