Skip to content

Commit

Permalink
Hardcode "/tmp" in BCKeys.INSTALL_DIR
Browse files Browse the repository at this point in the history
Intended to fix issue brooklyncentral#1402
  • Loading branch information
Sam Corbett authored and ZaidM committed May 28, 2014
1 parent cc61183 commit 010d41b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/brooklyn/entity/basic/BrooklynConfigKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public class BrooklynConfigKeys {
+ "(e.g. version, plugins, etc), but should be the same where install dirs can be shared to allow for re-use");

public static final BasicAttributeSensorAndConfigKey<String> INSTALL_DIR = new TemplatedStringAttributeSensorAndConfigKey("install.dir", "Directory for this software to be installed in",
"${"
+ "config['"+ONBOX_BASE_DIR.getName()+"']!"
+ "config['"+BROOKLYN_DATA_DIR.getName()+"']!"
+ "'"+Os.mergePathsUnix(Os.tmp(),"brooklyn-"+Os.user())+"'"
+ "}"
"${"
+ "config['"+ONBOX_BASE_DIR.getName()+"']!"
+ "config['"+BROOKLYN_DATA_DIR.getName()+"']!"
+ "'"+Os.mergePathsUnix("/tmp", "brooklyn-"+Os.user())+"'"
+ "}"
+ "/"
+ "installs/"
// the var?? tests if it exists, passing value to ?string(if_present,if_absent)
Expand Down

0 comments on commit 010d41b

Please sign in to comment.