Skip to content

Commit

Permalink
Event more debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
szilardhuber committed Nov 30, 2016
1 parent 051ad6f commit 476bcd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/DEBIAN/debian/controller.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 476bcd8

Please sign in to comment.