mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Move the tmp_ui_path removal to avoid potential issues in web UI
This commit is contained in:
parent
873dbdc014
commit
fbabbbd8d6
1 changed files with 4 additions and 4 deletions
|
|
@ -1384,12 +1384,12 @@ def plugins():
|
|||
args=("plugins",),
|
||||
).start()
|
||||
|
||||
# Remove tmp folder
|
||||
if tmp_ui_path.exists():
|
||||
rmtree(str(tmp_ui_path), ignore_errors=True)
|
||||
|
||||
return redirect(url_for("loading", next=url_for("plugins"), message="Reloading plugins"))
|
||||
|
||||
# Remove tmp folder
|
||||
if tmp_ui_path.is_dir():
|
||||
rmtree(tmp_ui_path, ignore_errors=True)
|
||||
|
||||
plugins = app.config["CONFIG"].get_plugins()
|
||||
plugins_internal = 0
|
||||
plugins_external = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue