From: Tony Mack Date: Wed, 20 May 2009 00:18:07 +0000 (+0000) Subject: fixed server.key/cert path X-Git-Tag: sfa-0.9-0@14641~383 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f6da11f38846e401320102aa1f79892cfd0e361f;p=sfa.git fixed server.key/cert path --- diff --git a/geni/plc.py b/geni/plc.py index 8565fee9..31df0d0f 100644 --- a/geni/plc.py +++ b/geni/plc.py @@ -37,11 +37,11 @@ from optparse import OptionParser from geni.util.hierarchy import Hierarchy from geni.util.trustedroot import TrustedRootList from geni.util.cert import Keypair, Certificate +from geni.util.config import Config from geni.registry import Registry from geni.aggregate import Aggregate from geni.slicemgr import SliceMgr - # after http://www.erlenstar.demon.co.uk/unix/faq_2.html def daemon(): """Daemonize the current process.""" @@ -76,9 +76,11 @@ def main(): parser.add_option("-d", "--daemon", dest="daemon", action="store_true", help="Run as daemon.", default=False) (options, args) = parser.parse_args() - - key_file = "server.key" - cert_file = "server.cert" + + config = Config() + path = config.path + key_file = path + os.sep + "server.key" + cert_file = path + os.sep + "server.cert" if (options.daemon): daemon()