mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
Handle the reverter file registration before opening file handle
This commit is contained in:
parent
e191bdb374
commit
75d90856c9
1 changed files with 1 additions and 1 deletions
|
|
@ -101,9 +101,9 @@ Alias /.well-known/acme-challenge {0}
|
|||
|
||||
name = os.path.join(self.challenge_dir, achall.chall.encode("token"))
|
||||
|
||||
self.configurator.reverter.register_file_creation(True, name)
|
||||
with open(name, 'wb') as f:
|
||||
f.write(validation.encode())
|
||||
self.configurator.reverter.register_file_creation(True, name)
|
||||
os.chmod(name, 0o644)
|
||||
|
||||
return response
|
||||
|
|
|
|||
Loading…
Reference in a new issue