[fix] avoid stupid mistake

This commit is contained in:
Laurent Peuch 2018-01-03 18:52:01 +01:00
parent 044b2406d3
commit 299cba623b

View file

@ -97,6 +97,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None
if key is None: if key is None:
if len(glob.glob('/etc/yunohost/dyndns/*.key')) == 0: if len(glob.glob('/etc/yunohost/dyndns/*.key')) == 0:
if not os.path.exists('/etc/yunohost/dyndns'):
os.makedirs('/etc/yunohost/dyndns') os.makedirs('/etc/yunohost/dyndns')
logger.info(m18n.n('dyndns_key_generating')) logger.info(m18n.n('dyndns_key_generating'))