mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Always delete lockfiles in _fix_symlinks
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user