mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
\o/
This commit is contained in:
parent
277c081ac0
commit
f13c3809b8
1 changed files with 3 additions and 3 deletions
|
@ -163,8 +163,6 @@ def tools_postinstall(args, connections):
|
||||||
dict
|
dict
|
||||||
|
|
||||||
"""
|
"""
|
||||||
args = get_required_args(args, {'domain' : _('Main domain name'), 'password' : _('New admin password') }, True)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('/usr/share/yunohost/yunohost-config/others/installed') as f: pass
|
with open('/usr/share/yunohost/yunohost-config/others/installed') as f: pass
|
||||||
except IOError:
|
except IOError:
|
||||||
|
@ -172,8 +170,10 @@ def tools_postinstall(args, connections):
|
||||||
else:
|
else:
|
||||||
raise YunoHostError(17, _("YunoHost is already installed"))
|
raise YunoHostError(17, _("YunoHost is already installed"))
|
||||||
|
|
||||||
|
args = get_required_args(args, {'domain' : _('Main domain name'), 'password' : _('New admin password') }, True)
|
||||||
|
|
||||||
# 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