Attempt to make postgresql not send an email about the 9.4->9.6 migration

This commit is contained in:
Alexandre Aubin 2018-06-11 17:45:17 +02:00
parent 2adc80f8db
commit 3681e6adfc

View file

@ -228,6 +228,8 @@ class MyMigration(Migration):
# Make apt-get happy # Make apt-get happy
os.system("echo 'libc6 libraries/restart-without-asking boolean true' | debconf-set-selections") 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 = ""
command += " DEBIAN_FRONTEND=noninteractive" command += " DEBIAN_FRONTEND=noninteractive"