mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fuck.
This commit is contained in:
parent
a6c2e87be1
commit
277c081ac0
2 changed files with 10 additions and 9 deletions
|
@ -125,7 +125,8 @@ def get_required_args(args, required_args, password=False):
|
||||||
else:
|
else:
|
||||||
raise Exception #FIX
|
raise Exception #FIX
|
||||||
# Password
|
# Password
|
||||||
if args['password'] is None and 'password' in required_args and password:
|
if 'password' in required_args and password:
|
||||||
|
if not args['password']:
|
||||||
if os.isatty(1):
|
if os.isatty(1):
|
||||||
args['password'] = getpass.getpass(colorize(required_args['password'] + ': ', 'cyan'))
|
args['password'] = getpass.getpass(colorize(required_args['password'] + ': ', 'cyan'))
|
||||||
pwd2 = getpass.getpass(colorize('Retype ' + required_args['password'][0].lower() + required_args['password'][1:] + ': ', 'cyan'))
|
pwd2 = getpass.getpass(colorize('Retype ' + required_args['password'][0].lower() + required_args['password'][1:] + ': ', 'cyan'))
|
||||||
|
|
|
@ -173,7 +173,7 @@ def tools_postinstall(args, connections):
|
||||||
raise YunoHostError(17, _("YunoHost is already installed"))
|
raise YunoHostError(17, _("YunoHost is already installed"))
|
||||||
|
|
||||||
# Initialize YunoHost LDAP base
|
# Initialize YunoHost LDAP base
|
||||||
tools_ldapinit(args, connections)
|
#tools_ldapinit(args, connections)
|
||||||
|
|
||||||
# Change LDAP admin password
|
# Change LDAP admin password
|
||||||
tools_adminpw({ 'old' : 'yunohost', 'new' : args['password']})
|
tools_adminpw({ 'old' : 'yunohost', 'new' : args['password']})
|
||||||
|
|
Loading…
Add table
Reference in a new issue