From decb372b7ac985bf67a896ae36f8f2a15b0261b0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 22 Nov 2019 19:18:24 +0100 Subject: [PATCH] Run a full diagnosis after each yunohost upgrade --- debian/postinst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 4633bc314..9c78c8432 100644 --- a/debian/postinst +++ b/debian/postinst @@ -14,11 +14,14 @@ do_configure() { echo "Regenerating configuration, this might take a while..." yunohost tools regen-conf --output-as none - echo "Launching migrations.." + echo "Launching migrations..." yunohost tools migrations migrate --auto + + echo "Re-diagnosing server health..." + yunohost diagnosis run --force fi - - # Change dpkg vendor + + # Change dpkg vendor # see https://wiki.debian.org/Derivatives/Guidelines#Vendor readlink -f /etc/dpkg/origins/default | grep -q debian \ && rm -f /etc/dpkg/origins/default \