Run a full diagnosis after each yunohost upgrade

This commit is contained in:
Alexandre Aubin 2019-11-22 19:18:24 +01:00
parent 978d9d5dfd
commit decb372b7a

9
debian/postinst vendored
View file

@ -14,11 +14,14 @@ do_configure() {
echo "Regenerating configuration, this might take a while..." echo "Regenerating configuration, this might take a while..."
yunohost tools regen-conf --output-as none yunohost tools regen-conf --output-as none
echo "Launching migrations.." echo "Launching migrations..."
yunohost tools migrations migrate --auto yunohost tools migrations migrate --auto
echo "Re-diagnosing server health..."
yunohost diagnosis run --force
fi fi
# Change dpkg vendor # Change dpkg vendor
# see https://wiki.debian.org/Derivatives/Guidelines#Vendor # see https://wiki.debian.org/Derivatives/Guidelines#Vendor
readlink -f /etc/dpkg/origins/default | grep -q debian \ readlink -f /etc/dpkg/origins/default | grep -q debian \
&& rm -f /etc/dpkg/origins/default \ && rm -f /etc/dpkg/origins/default \