plexinc/plex-media-server-distro-scripts — pull request #14 by ziggimon (2012-04-13 14:33:16+00:00)
Title: Fix for installing RPM

While updating the spec file I moved the stop plex on install to the pre phase without checking if plex was installed or not. Caused install error. Also, not adding exit 0 to the %pre phase caused the rpm to bail out before actually installing plex. Now has check for upgrade or install and ensures we exit out the pre phase with exit 0, so we continue with the install/upgrade.