remove extensions dir completly, create it on startup (#1778)
* remove extensions dir compleltly, and create it on server.py start * also ignore symlinks
This commit is contained in:
parent
213be79aaa
commit
153e22fb54
3 changed files with 4 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -47,5 +47,5 @@ fly.toml
|
||||||
lnbits-backup.zip
|
lnbits-backup.zip
|
||||||
|
|
||||||
# Ignore extensions (post installable extension PR)
|
# Ignore extensions (post installable extension PR)
|
||||||
extensions/
|
extensions
|
||||||
upgrades/
|
upgrades/
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ def main(
|
||||||
# create data dir if it does not exist
|
# create data dir if it does not exist
|
||||||
Path(settings.lnbits_data_folder).mkdir(parents=True, exist_ok=True)
|
Path(settings.lnbits_data_folder).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
# create extension dir if it does not exist
|
||||||
|
Path(settings.lnbits_path, "extensions").mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
set_cli_settings(host=host, port=port, forwarded_allow_ips=forwarded_allow_ips)
|
set_cli_settings(host=host, port=port, forwarded_allow_ips=forwarded_allow_ips)
|
||||||
|
|
||||||
# this beautiful beast parses all command line arguments and passes them to the uvicorn server
|
# this beautiful beast parses all command line arguments and passes them to the uvicorn server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue