summarylogtreecommitdiffstats
path: root/tautulli.install
blob: 2e0ab4d597b87f69591a00dd1d76ddaf9dbbe985 (plain)
1
2
3
4
5
6
7
8
9
# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  # Version 2.5.2 switched to python 3, but the .pyc files need to be cleaned.
  if (( $(vercmp "2.5.2" "$2") >= 0 )); then
    echo "Removing .pyc files in /usr/lib/tautulli."
    find /usr/lib/tautulli -type f -iname '*.pyc' -delete
  fi
}