from sfa.server.aggregate import Aggregate
from sfa.server.slicemgr import SliceMgr
-from sfa.util.config import Config
from sfa.trust.hierarchy import Hierarchy
# after http://www.erlenstar.demon.co.uk/unix/faq_2.html
help="Run as daemon.", default=False)
(options, args) = parser.parse_args()
- config = Config()
- path = config.basepath
- key_file = path + os.sep + "server.key"
- cert_file = path + os.sep + "server.cert"
+ hierarchy = Hierarchy()
+ path = hierarchy.basedir
+ key_file = os.path.join(path, "server.key")
+ cert_file = os.path.join(path, "server.cert")
if (options.daemon): daemon()
def __init__(self, basedir = None):
if not basedir:
config = Config()
- basedir = config.config_path + os.sep + "authorities"
+ basedir = os.path.join(config.config_path, "authorities")
self.basedir = basedir
##
# Given a hrn, return the filenames of the GID, private key, and dbinfo