diff options
Diffstat (limited to 'tautulli.install')
-rw-r--r-- | tautulli.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tautulli.install b/tautulli.install index ed96f944e9ef..090cc8033b87 100644 --- a/tautulli.install +++ b/tautulli.install @@ -6,3 +6,13 @@ post_install() { echo " sudo chown -R tautulli: /var/lib/tautulli" fi } + +# 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 +} |