mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
domain creation bugfix
This commit is contained in:
parent
372a2d68c7
commit
bcbc3abf0c
1 changed files with 3 additions and 2 deletions
|
@ -68,8 +68,9 @@ def domain_add(domains, web=False):
|
|||
domains = [ domains ]
|
||||
|
||||
for domain in domains:
|
||||
if domain in domain_list()['Domains']:
|
||||
continue
|
||||
try:
|
||||
if domain in domain_list()['Domains']: continue
|
||||
except YunoHostError: pass
|
||||
ssl_dir = '/usr/share/yunohost/yunohost-config/ssl/yunoCA'
|
||||
ssl_domain_path = '/etc/yunohost/certs/'+ domain
|
||||
with open(ssl_dir +'/serial', 'r') as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue