diff --git a/init/30_update_plex.sh b/init/30_update_plex.sh index 22cec41..fa8594d 100644 --- a/init/30_update_plex.sh +++ b/init/30_update_plex.sh @@ -23,7 +23,9 @@ else fi last=130 -if [[ "$VERSION" != "$INSTALLED" ]]; then +if [[ "$VERSION" == "" ]]; then + echo "ERROR: No version found, running installed version $INSTALLED" +elif [[ "$VERSION" != "$INSTALLED" ]]; then echo "Upgrading from version: $INSTALLED to version: $VERSION" while [[ $last -ne "0" ]]; do rm -f /tmp/plexmediaserver_*.deb