Yunohost config utils

This commit is contained in:
Thomas Sileo 2022-08-21 15:40:25 +02:00
parent 7c6768266c
commit 601313cf65
2 changed files with 21 additions and 4 deletions

View file

@ -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,
)