From a858a2072bac3fdcfd2e0a0df61faf51146c274c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 20 Nov 2019 20:17:11 +0100 Subject: [PATCH] Also remove the legacy cron job, since there was a name change --- .../data_migrations/0013_futureproof_apps_catalog_system.py | 4 ++++ 1 file changed, 4 insertions(+) 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)