From dda095dc15b47c9441342974e462e115e7dadd40 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 27 Jan 2024 16:13:57 +0100 Subject: [PATCH] Cleanup legacy --- src/tools.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/tools.py b/src/tools.py index 19b033e87..93ceacdd4 100644 --- a/src/tools.py +++ b/src/tools.py @@ -292,18 +292,6 @@ def tools_regen_conf( ): from yunohost.regenconf import regen_conf - - # Make sure the settings are migrated before running the migration, - # which may otherwise fuck things up such as the ssh config ... - # We do this here because the regen-conf is called before the migration in debian/postinst - if os.path.exists("/etc/yunohost/settings.json") and not os.path.exists( - "/etc/yunohost/settings.yml" - ): - try: - tools_migrations_run(["0025_global_settings_to_configpanel"]) - except Exception as e: - logger.error(e) - return regen_conf(names, with_diff, force, dry_run, list_pending)