1 2 3 4 5
post_upgrade() { if [ "$(vercmp $2 5.1)" -lt 0 ]; then echo " >> Major version update. Consider running db_upgrade on Berkeley DB databases." fi }