forked from forks/microblog.pub
Yunohost config utils
This commit is contained in:
parent
7c6768266c
commit
601313cf65
2 changed files with 21 additions and 4 deletions
|
@ -74,7 +74,6 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac
|
|||
|
||||
|
||||
# TODO(ts):
|
||||
#
|
||||
# Next:
|
||||
# - fix issue with followers from a blocked server (skip it?)
|
||||
# - allow to share old notes
|
||||
|
@ -82,10 +81,7 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac
|
|||
# - prevent double accept/double follow
|
||||
# - UI support for updating posts
|
||||
# - indieauth tweaks
|
||||
# - API for posting notes
|
||||
# - FT5 text search
|
||||
# - support update post with history?
|
||||
# - cleanup tasks
|
||||
|
||||
|
||||
class CustomMiddleware:
|
||||
|
|
21
tasks.py
21
tasks.py
|
@ -191,3 +191,24 @@ def prune_old_data(ctx):
|
|||
from app.prune import run_prune_old_data
|
||||
|
||||
asyncio.run(run_prune_old_data())
|
||||
|
||||
|
||||
@task
|
||||
def yunohost_config(
|
||||
ctx,
|
||||
domain,
|
||||
username,
|
||||
name,
|
||||
summary,
|
||||
password,
|
||||
):
|
||||
# type: (Context, str, str, str, str, str) -> None
|
||||
from app.utils import yunohost
|
||||
|
||||
yunohost.setup_config_file(
|
||||
domain=domain,
|
||||
username=username,
|
||||
name=name,
|
||||
summary=summary,
|
||||
password=password,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue