From 620bdefe306579f51606192b59fcf2e901886f74 Mon Sep 17 00:00:00 2001 From: kload Date: Sat, 26 Apr 2014 14:25:55 +0000 Subject: [PATCH] [fix] properly get app settings --- lib/yunohost/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/yunohost/app.py b/lib/yunohost/app.py index 222f02a1..afd59ee1 100644 --- a/lib/yunohost/app.py +++ b/lib/yunohost/app.py @@ -656,8 +656,11 @@ def app_makedefault(app, domain=None): if not _is_installed(app): raise MoulinetteError(22, _("App is not installed")) - app_domain = app_setting(app, 'domain') - app_path = app_setting(app, 'path') + with open(apps_setting_path + app +'/settings.yml') as f: + app_settings = yaml.load(f) + + app_domain = app_settings['domain'] + app_path = app_settings['path'] if domain is None: domain = app_domain