From 3681e6adfcf33b4a4643c310ac0891fe0d87d07f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 11 Jun 2018 17:45:17 +0200 Subject: [PATCH] Attempt to make postgresql not send an email about the 9.4->9.6 migration --- src/yunohost/data_migrations/0003_migrate_to_stretch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yunohost/data_migrations/0003_migrate_to_stretch.py b/src/yunohost/data_migrations/0003_migrate_to_stretch.py index b2fcd08ac..8b8d37447 100644 --- a/src/yunohost/data_migrations/0003_migrate_to_stretch.py +++ b/src/yunohost/data_migrations/0003_migrate_to_stretch.py @@ -228,6 +228,8 @@ class MyMigration(Migration): # Make apt-get happy os.system("echo 'libc6 libraries/restart-without-asking boolean true' | debconf-set-selections") + # Don't send an email to root about the postgresql migration. It should be handled automatically after. + os.system("echo 'postgresql-common postgresql-common/obsolete-major seen true' | debconf-set-selections") command = "" command += " DEBIAN_FRONTEND=noninteractive"