[fix] oops ™

This commit is contained in:
Laurent Peuch 2016-05-13 13:48:29 +02:00
parent f52b805bf4
commit 794bc25887

View file

@ -194,7 +194,7 @@ def domain_remove(auth, domain, force=False):
m18n.n('domain_uninstall_app_first'))
if auth.remove('virtualdomain=' + domain + ',ou=domains') or force:
shutil.rmtree('rm -rf /etc/yunohost/certs/%s' % domain)
shutil.rmtree('/etc/yunohost/certs/%s' % domain)
else:
raise MoulinetteError(errno.EIO, m18n.n('domain_deletion_failed'))