mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Always delete lockfiles in _fix_symlinks
This commit is contained in:
parent
b90827dc98
commit
acc44f2b65
1 changed files with 4 additions and 4 deletions
|
|
@ -238,10 +238,10 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes
|
|||
os.unlink(link)
|
||||
with open(lockfile) as f:
|
||||
os.symlink(f.readline().rstrip(), link)
|
||||
else:
|
||||
for _, lockfile in lockfiles:
|
||||
if os.path.exists(lockfile):
|
||||
os.unlink(lockfile)
|
||||
|
||||
for _, lockfile in lockfiles:
|
||||
if os.path.exists(lockfile):
|
||||
os.unlink(lockfile)
|
||||
|
||||
def current_target(self, kind):
|
||||
"""Returns full path to which the specified item currently points.
|
||||
|
|
|
|||
Loading…
Reference in a new issue