1 2 3 4 5 6 7 8 9 10 11
post_install() { echo ">>> Updating MIME database." update-mime-database /usr/share/mime } post_upgrade(){ if [[ $(echo $2 | grep "0.0") ]] then post_install fi }