mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix postinstall
This commit is contained in:
parent
c16c9160b3
commit
8ca9f69691
2 changed files with 33 additions and 30 deletions
|
@ -277,6 +277,10 @@ class YunoHostLDAP(Singleton):
|
|||
elif self.pwd:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
with open('/etc/yunohost/passwd') as f:
|
||||
self.pwd = f.read()
|
||||
except IOError:
|
||||
need_password = True
|
||||
while need_password:
|
||||
try:
|
||||
|
|
|
@ -112,7 +112,6 @@ def http_exec(request, **kwargs):
|
|||
raise YunoHostError(168, _('Function not yet implemented : ') + dict['function'].split('.')[1])
|
||||
|
||||
# Execute requested function
|
||||
with YunoHostLDAP(password=request.getPassword()):
|
||||
try:
|
||||
with open('/var/run/yunohost.pid', 'r'):
|
||||
raise YunoHostError(1, _("A YunoHost command is already running"))
|
||||
|
|
Loading…
Add table
Reference in a new issue