Permalink
Browse files

Remove HOME setting in etckeeper. sudo now defaults to setting HOME i…

…tself as of version 1.7.4p4, so it is not necessary for etckeeper to work around its behavior anymore. (sudo also allows disabling that for those who enjoy using guns around feet.) Closes: #583899
  • Loading branch information...
1 parent 08a94e6 commit 577f128e85e886c66fe25ae5edf71bd47d9cdfd7 @joeyh joeyh committed Sep 11, 2010
Showing with 5 additions and 5 deletions.
  1. +4 −0 debian/changelog
  2. +1 −0 debian/control
  3. +0 −5 etckeeper
View
@@ -4,6 +4,10 @@ etckeeper (0.49) UNRELEASED; urgency=low
that hook scripts that re-exec etckeeper are guaranteed to find it.
* Ignore -m switch to etckeeper commit, in case someone tries to use
it with that option common to several VCS. Closes: #592050
+ * Remove HOME setting in etckeeper. sudo now defaults to setting HOME
+ itself as of version 1.7.4p4, so it is not necessary for etckeeper
+ to work around its behavior anymore. (sudo also allows disabling that
+ for those who enjoy using guns around feet.) Closes: #583899
-- Joey Hess <joeyh@debian.org> Sun, 25 Jul 2010 19:44:37 -0400
View
@@ -13,6 +13,7 @@ Architecture: all
Section: admin
Depends: git-core (>= 1:1.5.4) | git (>= 1:1.7) | mercurial | bzr (>= 1.4~) | darcs, ${misc:Depends}
Recommends: cron
+Suggests: sudo (>= 1.7.4p4)
Conflicts: bzr (<< 1.4~)
XB-Python-Version: ${python:Versions}
Description: store /etc in git, mercurial, bzr or darcs
View
@@ -22,11 +22,6 @@ if [ -z "$VCS" ]; then
fi
export VCS
-# Workaround for sudo before 1.7.4p4 which left HOME pointing at user's
-# home directory
-HOME=~root
-export HOME
-
program_directory="${0%/*}"
if [ -n "$program_directory" ]; then
PATH="$PATH:$program_directory"

0 comments on commit 577f128

Please sign in to comment.