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:
parent
cde18bcd3a
commit
7b98b7dc00
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user