DescriptionFix the creation of ~/.juju/ssh to be user owned
If the user's first interaction is with bootstrapping the
local provider with sudo, we want to make sure that the
directory and content is owned by the user.
Drive by fix for the cmd/juju MainSuite. I had a root owned
~/.juju/ssh directory, and the test was trying to read it and
failing, so I isolated the test by having it use the FakeHomeSuite
which overrides $HOME (and other things).
Many other utilities written to help with dealing with
creating directories and changing ownership of files to the
user if running under sudo.
https://code.launchpad.net/~thumper/juju-core/juju-ssh-dir-as-user/+merge/201876
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fix the creation of ~/.juju/ssh to be user owned #
MessagesTotal messages: 4
|