From 130efefe6c8e8750504152742bd82961f18c8a02 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Sat, 27 Dec 2014 14:01:00 -0800 Subject: [PATCH] Call sudo /w -H in install_pip.sh as well We updated other usage of sudo to pass -H when installing pip things, to avoid creating a .cache directory in $STACK_USER's $HOME that is owned by root. get-pip.py also ends up creating a ~/.cache, so we need to update sudo usage there as well. Closes-bug: #1405626 Related-bug: #1405732 Change-Id: If791b9b25d6a4280dab19117004184e57e78d038 --- tools/install_pip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index f30ad2bcd0..d57a687ecc 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -46,7 +46,7 @@ function install_get_pip { curl -o $LOCAL_PIP $PIP_GET_PIP_URL || \ die $LINENO "Download of get-pip.py failed" fi - sudo -E python $LOCAL_PIP + sudo -H -E python $LOCAL_PIP }