use corrct config_dir
authorTony Mack <tmack@cs.princeton.edu>
Wed, 9 Dec 2009 21:34:03 +0000 (21:34 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 9 Dec 2009 21:34:03 +0000 (21:34 +0000)
sfa/server/sfa_component_setup.py
sfa/util/config.py

index 67fe52a..4255f81 100755 (executable)
@@ -120,7 +120,8 @@ def get_trusted_certs(registry=None, verbose=False):
     """
     # define useful variables
     config = Config()
-    data_dir = config.data_path
+    data_dir = config.SFA_DATA_DIR
+    config_dir = config.SFA_CONFIG_DIR
     trusted_certs_dir = config.get_trustedroots_dir()
     keyfile = data_dir + os.sep + "server.key"
     certfile = data_dir + os.sep + "server.cert"
index 929b899..02ad5d3 100644 (file)
@@ -40,6 +40,7 @@ class Config:
             self.config_file = config_file
             # path to configuration data
             self.config_path = os.path.dirname(config_file)
+            
             # path to server data
             if not hasattr(self, 'SFA_DATA_DIR'):
                 # default to /var/lib/sfa not specified in config