From b204410f7fc98e6e2dd65336af0c49e60c457c34 Mon Sep 17 00:00:00 2001 From: kload Date: Wed, 30 Oct 2013 19:46:58 +0000 Subject: [PATCH] API bugfix --- yunohost.tac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yunohost.tac b/yunohost.tac index 2d752f6e..5347f8ac 100755 --- a/yunohost.tac +++ b/yunohost.tac @@ -118,12 +118,12 @@ def http_exec(request, **kwargs): try: with open('/var/run/yunohost.pid', 'r'): raise YunoHostError(1, _("A YunoHost command is already running")) - exceOError: + except IOError: with open('/var/run/yunohost.pid', 'w') as f: f.write('ldap') os.system('chmod 400 /var/run/yunohost.pid') with open('/etc/yunohost/passwd', 'w') as f: - f.write(admin_password) + f.write(request.getPassword()) os.system('chmod 400 /etc/yunohost/passwd') try: result = func(**validated_args)