mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Lazy loading might improve performances a bit
This commit is contained in:
parent
d17fcaf94f
commit
af8981e4e0
1 changed files with 5 additions and 2 deletions
|
@ -32,8 +32,7 @@ from moulinette.core import MoulinetteError
|
|||
from yunohost.utils.error import YunohostError
|
||||
from moulinette.utils.log import getActionLogger
|
||||
|
||||
import yunohost.certificate
|
||||
|
||||
from yunohost.app import app_ssowatconf
|
||||
from yunohost.regenconf import regen_conf
|
||||
from yunohost.utils.network import get_public_ip
|
||||
from yunohost.log import is_unit_operation
|
||||
|
@ -105,6 +104,7 @@ def domain_add(operation_logger, domain, dyndns=False):
|
|||
dyndns_subscribe(domain=domain)
|
||||
|
||||
try:
|
||||
import yunohost.certificate
|
||||
yunohost.certificate._certificate_install_selfsigned([domain], False)
|
||||
|
||||
attr_dict = {
|
||||
|
@ -234,14 +234,17 @@ def domain_dns_conf(domain, ttl=None):
|
|||
|
||||
|
||||
def domain_cert_status(domain_list, full=False):
|
||||
import yunohost.certificate
|
||||
return yunohost.certificate.certificate_status(domain_list, full)
|
||||
|
||||
|
||||
def domain_cert_install(domain_list, force=False, no_checks=False, self_signed=False, staging=False):
|
||||
import yunohost.certificate
|
||||
return yunohost.certificate.certificate_install(domain_list, force, no_checks, self_signed, staging)
|
||||
|
||||
|
||||
def domain_cert_renew(domain_list, force=False, no_checks=False, email=False, staging=False):
|
||||
import yunohost.certificate
|
||||
return yunohost.certificate.certificate_renew(domain_list, force, no_checks, email, staging)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue