Fixes bug 757033
different CA path definitions Change-Id: I55bb9df1b4b4a0095c4d62215847b730976028ee
This commit is contained in:
parent
15937a4160
commit
8a0370e4cf
@ -223,8 +223,7 @@ def generate_x509_cert(user_id, project_id, bits=1024):
|
|||||||
|
|
||||||
def _ensure_project_folder(project_id):
|
def _ensure_project_folder(project_id):
|
||||||
if not os.path.exists(ca_path(project_id)):
|
if not os.path.exists(ca_path(project_id)):
|
||||||
geninter_sh_path = os.path.join(os.path.dirname(__file__),
|
geninter_sh_path = os.path.join(FLAGS.ca_path,
|
||||||
'CA',
|
|
||||||
'geninter.sh')
|
'geninter.sh')
|
||||||
start = os.getcwd()
|
start = os.getcwd()
|
||||||
os.chdir(ca_folder())
|
os.chdir(ca_folder())
|
||||||
@ -238,8 +237,7 @@ def generate_vpn_files(project_id):
|
|||||||
csr_fn = os.path.join(project_folder, 'server.csr')
|
csr_fn = os.path.join(project_folder, 'server.csr')
|
||||||
crt_fn = os.path.join(project_folder, 'server.crt')
|
crt_fn = os.path.join(project_folder, 'server.crt')
|
||||||
|
|
||||||
genvpn_sh_path = os.path.join(os.path.dirname(__file__),
|
genvpn_sh_path = os.path.join(FLAGS.ca_path,
|
||||||
'CA',
|
|
||||||
'genvpn.sh')
|
'genvpn.sh')
|
||||||
if os.path.exists(crt_fn):
|
if os.path.exists(crt_fn):
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user