From 4e8ab238942964a417ddd0fb88628dc2c66ccde1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Oct 2012 19:52:26 +0200 Subject: [PATCH] fixes --- yunohost_tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yunohost_tools.py b/yunohost_tools.py index ce0d9457..5b1d900d 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -87,7 +87,7 @@ def tools_maindomain(args): dict """ - args = get_required_args(args, {'new' : _('New main domain name')) + args = get_required_args(args, {'new' : _('New main domain name')}) if not args['old']: with open('/usr/share/yunohost/yunohost-config/others/current_host', 'r') as f: @@ -165,12 +165,12 @@ def tools_postinstall(args, connections): try: with open('/usr/share/yunohost/yunohost-config/others/installed') as f: pass except IOError: - print 'Installing YunoHost' + print('Installing YunoHost') else: - raise YunoHostError(17, _("YunoHost is already installed") + raise YunoHostError(17, _("YunoHost is already installed")) # Initialize YunoHost LDAP base - tools_ldapinit(None, connections) + tools_ldapinit(args, connections) # Change LDAP admin password tools_adminpw({ 'old' : 'yunohost', 'new' : args['password']})