Skip to content

Commit

Permalink
generate dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasKulhanek committed Mar 27, 2018
1 parent 9e71f2b commit cc10509
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DatasetServiceCon extends SharedCon {
//REP_USER_DIR environment variable sets directory where new dataset may resist
private static final String REP_LOCATION=Optional.ofNullable(System.getenv("REP_LOCATION")).orElse("/home/vagrant/wp6_repository");
private static final String USER_DIR=Optional.ofNullable(System.getenv("VF_STORAGE_DIR")).orElse("/home/vagrant/work");
private static final String TEST_DIR=REP_LOCATION.substring(0,REP_LOCATION.lastIndexOf("/"))+"test/";
private static final String TEST_DIR=REP_LOCATION+"/test/";
private static final String SCRIPT_DIR=REP_LOCATION+"/scripts/";
private static Gson gson = new Gson();

Expand Down Expand Up @@ -236,7 +236,8 @@ private String getContextFromUri(String uri){
}

private String getUserdir(String xusername, String proxycontext) {
String uh = getHash(xusername);
String uh = "U";
if (xusername.length()>0) uh = getHash(xusername);
return USER_DIR+"/"+uh+"/"+proxycontext;
}

Expand Down

0 comments on commit cc10509

Please sign in to comment.