You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without the -H flag to the sudo command, calls to pip may fail when run through sudo because HOME is still set to the SSH username, rather than the sudo username. This is required, e.g., for writing an error log in the case that a package build fails.
Either set this by default, or provide an argument to sudo() that will enable it on the remote sudo command.
The text was updated successfully, but these errors were encountered:
I got bitten by this, too. Despite 'env_reset' being set in ubuntu's default sudoers file, HOME isn't being set to the user you sudo to... Before it ends up in fabric itself, there's an easy way to set the '-H' option always. Near the top of your fabfile, set this:
Without the -H flag to the sudo command, calls to pip may fail when run through sudo because HOME is still set to the SSH username, rather than the sudo username. This is required, e.g., for writing an error log in the case that a package build fails.
Either set this by default, or provide an argument to sudo() that will enable it on the remote sudo command.
The text was updated successfully, but these errors were encountered: