diff --git a/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py b/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py index e5e1f43de..90c46ea5b 100644 --- a/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py +++ b/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py @@ -30,6 +30,10 @@ class MyMigration(Migration): if os.path.exists(APPS_CATALOG_CACHE): shutil.rmtree(APPS_CATALOG_CACHE) + # and legacy cron + if os.path.exists("/etc/cron.daily/yunohost-fetch-appslists"): + os.remove("/etc/cron.daily/yunohost-fetch-appslists") + # Backup the legacy file try: legacy_catalogs = read_json(LEGACY_APPS_CATALOG_CONF)