mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
backup: fix postinstall during full restore ... tmp admin user can't be named 'admin' because of conflicting alias with the admins group
This commit is contained in:
parent
a4fa6e07d0
commit
658940079d
1 changed files with 3 additions and 2 deletions
|
@ -940,7 +940,7 @@ class RestoreManager:
|
|||
|
||||
# Use a dummy password which is not gonna be saved anywhere
|
||||
# because the next thing to happen should be that a full restore of the LDAP db will happen
|
||||
tools_postinstall(domain, "admin", "Admin", password=random_ascii(70), ignore_dyndns=True, overwrite_root_password=False)
|
||||
tools_postinstall(domain, "tmpadmin", "Tmp Admin", password=random_ascii(70), ignore_dyndns=True, overwrite_root_password=False)
|
||||
|
||||
def clean(self):
|
||||
"""
|
||||
|
@ -1188,7 +1188,8 @@ class RestoreManager:
|
|||
self._restore_apps()
|
||||
except Exception as e:
|
||||
raise YunohostError(
|
||||
f"The following critical error happened during restoration: {e}"
|
||||
f"The following critical error happened during restoration: {e}",
|
||||
raw_msg=True
|
||||
)
|
||||
finally:
|
||||
self.clean()
|
||||
|
|
Loading…
Add table
Reference in a new issue