2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix wrong uid after duplicate identity check

This commit is contained in:
Jarrod Johnson 2022-09-08 09:51:21 -04:00
parent cde18bcd3a
commit 7b98b7dc00

View File

@ -82,6 +82,7 @@ def initialize_ca():
if os.path.exists('/etc/confluent/ssh/ca.pub'):
cafilename = '/var/lib/confluent/public/site/ssh/{0}.ca'.format(myname)
shutil.copy('/etc/confluent/ssh/ca.pub', cafilename)
os.seteuid(ouid)
raise AlreadyExists()
try:
os.makedirs('/etc/confluent/ssh', mode=0o700)