mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Restart slapd in all case in migration
This commit is contained in:
parent
fd76f5544a
commit
6674c9d59d
1 changed files with 2 additions and 1 deletions
|
@ -99,9 +99,10 @@ class MyMigration(Migration):
|
|||
os.system("cp -r --preserve /etc/ldap %s/ldap_config" % backup_folder)
|
||||
os.system("cp -r --preserve /var/lib/ldap %s/ldap_db" % backup_folder)
|
||||
os.system("cp -r --preserve /etc/yunohost/apps %s/apps_settings" % backup_folder)
|
||||
os.system("systemctl start slapd")
|
||||
except Exception as e:
|
||||
raise YunohostError("migration_0009_can_not_backup_before_migration", error=e)
|
||||
finally:
|
||||
os.system("systemctl start slapd")
|
||||
|
||||
try:
|
||||
# Update LDAP schema restart slapd
|
||||
|
|
Loading…
Add table
Reference in a new issue