fix: check the settings for extension installed (#2764)

This commit is contained in:
Vlad Stan
2024-11-06 12:07:12 +02:00
committed by GitHub
parent ba5f79da2d
commit aced333c0b
4 changed files with 7 additions and 8 deletions
+2 -1
View File
@@ -225,7 +225,8 @@ async def check_installed_extensions(app: FastAPI):
re-created. The 'data' directory (where the '.zip' files live) is expected to
persist state. Zips that are missing will be re-downloaded.
"""
shutil.rmtree(os.path.join("lnbits", "upgrades"), True)
shutil.rmtree(Path(settings.lnbits_extensions_path, "upgrades"), True)
installed_extensions = await build_all_installed_extensions_list(False)
for ext in installed_extensions: