Revert "Moved the SCGI storage root default into Environment."
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 00:28:16 +0000 (02:28 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Sep 2010 00:28:16 +0000 (02:28 +0200)
This reverts commit ca735b1ffb58436bbd0ab9855625560c28f21424, since
the code didn't respect context names with that.

src/dolda/jsvc/scgi/DSContext.java
src/dolda/jsvc/scgi/Environment.java

index 350e1c5..c726887 100644 (file)
@@ -37,6 +37,10 @@ public class DSContext extends SimpleContext {
     }
     
     private void loadconfig() {
+       if(env.root != null) {
+           File sroot = new File(new File(env.root, "store"), name());
+           sysconfig.put("jsvc.storage", "file:" + sroot.getPath());
+       }
        sysconfig.putAll(env.sysconfig);
     }
     
index b2f85bf..e91f57a 100644 (file)
@@ -27,8 +27,6 @@ public class Environment {
     }
     
     private void loadconfig() {
-       File sroot = new File(root, "store");
-       sysconfig.put("jsvc.storage", "file:" + sroot.getPath());
        File conf = new File(root, "jsvc.properties");
        if(conf.exists()) {
            try {