From 476bcd885b9407ca61eadc999bb49ffd5ead4850 Mon Sep 17 00:00:00 2001 From: Szilard Huber Date: Wed, 30 Nov 2016 16:37:15 +0100 Subject: [PATCH] Event more debug log --- controller/DEBIAN/debian/controller.postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controller/DEBIAN/debian/controller.postinst b/controller/DEBIAN/debian/controller.postinst index 50b9be57..e4a37365 100644 --- a/controller/DEBIAN/debian/controller.postinst +++ b/controller/DEBIAN/debian/controller.postinst @@ -220,11 +220,14 @@ orderedversions=$(echo -e $versions | sort -V) outputifoldislower=`echo -e "X$oldversion\n$newversion"` echo "Checking if current version is before 2.0.266" echo $orderedversions -echo $outputifolderislower +echo $outputifoldislower if [ "$outputifoldislower" = "X$orderedversions" ]; then + echo "Yes we are in, we should do the upgrade." psql paldb << XYZZY alter table agent_volumes add column priority BIGINT DEFAULT 50 XYZZY +else + echo "No we don't need to upgrade the DB. $oldversion $newversion" fi update-rc.d controller defaults