summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-02-15 13:10:59 -0400
committerJoey Hess <joeyh@joeyh.name>2016-02-15 13:10:59 -0400
commit75fc302e526e22c02aafd06773abb21015f4d95d (patch)
treef496652987b25c2e12518828bf0cdc3dbbc8011e /etckeeper
parent3faff8b9c428038be8eea30bf7857cfdf0b68200 (diff)
Set HOME if it's not set, as is the case when using ubuntu's update-manager.
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper5
1 files changed, 5 insertions, 0 deletions
diff --git a/etckeeper b/etckeeper
index d85ebb6..5a3ca25 100755
--- a/etckeeper
+++ b/etckeeper
@@ -59,6 +59,11 @@ if [ ! -z "$PUSH_REMOTE" ]; then
export PUSH_REMOTE
fi
+if [ -z "$HOME" ]; then
+ HOME=~root
+ export HOME
+fi
+
if [ -z "$1" ]; then
usage
elif [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ]; then