Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(374)

Issue 11319044: Change the default root-dir to be in $HOME

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by thumper
Modified:
10 years, 9 months ago
Reviewers:
mp+174908, jtv.canonical, fwereade
Visibility:
Public.

Description

Change the default root-dir to be in $HOME Instead of having the root-dir in /usr/lib/juju, make it in ~/.juju (well, $JUJU_HOME) by default. The root dir is now the environment name under the ~/.juju dir. https://code.launchpad.net/~thumper/juju-core/local-default-root-dir/+merge/174908 Requires: https://code.launchpad.net/~thumper/juju-core/local-sudo-caller/+merge/174904 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -19 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/local/config_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/local/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M environs/local/environ_test.go View 3 chunks +5 lines, -11 lines 2 comments Download
M environs/local/environprovider.go View 3 chunks +3 lines, -3 lines 0 comments Download
M environs/local/environprovider_test.go View 1 chunk +3 lines, -4 lines 2 comments Download

Messages

Total messages: 4
thumper
Please take a look.
10 years, 9 months ago (2013-07-16 03:28:17 UTC) #1
jtv.canonical
LGTM but for one thing that worries me: is this about /usr/lib/juju or about /var/lib/juju? ...
10 years, 9 months ago (2013-07-16 04:13:58 UTC) #2
fwereade
LGTM
10 years, 9 months ago (2013-07-16 11:01:44 UTC) #3
thumper
10 years, 9 months ago (2013-07-16 22:00:59 UTC) #4
https://codereview.appspot.com/11319044/diff/1/environs/local/environ_test.go
File environs/local/environ_test.go (left):

https://codereview.appspot.com/11319044/diff/1/environs/local/environ_test.go...
environs/local/environ_test.go:21: func (*environSuite)
TestOpenFailsWithoutDirs(c *gc.C) {
On 2013/07/16 04:13:58, jtv.canonical wrote:
> 
> This test's name may need changing now.

Done.

https://codereview.appspot.com/11319044/diff/1/environs/local/environprovider...
File environs/local/environprovider_test.go (left):

https://codereview.appspot.com/11319044/diff/1/environs/local/environprovider...
environs/local/environprovider_test.go:16: restoreDataDir func()
On 2013/07/16 04:13:58, jtv.canonical wrote:
> 
> You're removing the overriding of DataDir here — but be aware that that is
*not*
> the old /usr/lib/juju that you're replacing here.  This one is about
> /var/lib/juju.  So you may still need both.

Sorry about the confusing directory name.  I should have said /var/lib/juju, and
we don't actually use that now.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b