Browse code

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

Adam Gandelman authored on 2014/12/28 07:01:00
Showing 1 changed files
... ...
@@ -46,7 +46,7 @@ function install_get_pip {
46 46
         curl -o $LOCAL_PIP $PIP_GET_PIP_URL || \
47 47
             die $LINENO "Download of get-pip.py failed"
48 48
     fi
49
-    sudo -E python $LOCAL_PIP
49
+    sudo -H -E python $LOCAL_PIP
50 50
 }
51 51
 
52 52