mrworf/plexupdate

plexupdate fails to find package

didyouexpectthat opened this issue · 1 comments

On ReadyNAS OS 6, Plex is actually called plexmediaserver-ros6-binaries, so the following line fails...

dpkg-query --showformat='${Version}' --show plexmediaserver 2>/dev/null

root@rn628x:/opt/plexupdate# dpkg-query --showformat='${Version}' --show plexmediaserver-ros6-binaries
1.13.7.5369-93c9f1259
root@rn628x:/opt/plexupdate# dpkg-query --showformat='${Version}' --show plexmediaserver
dpkg-query: no packages found matching plexmediaserver

Which results in WARNING: Unable to detect installed version, first time?

This can either be resolved by adding an asterisk after plexmediaserver or by replacing this with a variable.

root@rn628x:/opt/plexupdate# dpkg-query --showformat='${Version}' --show plexmediaserver*
1.13.7.5369-93c9f1259

Relative config

BUILD="linux-ubuntu-x86_64"
DISTRO="readynas6"
SYSTEMDUNIT=fvapp-plexmediaserver.service

Will create a new pull-request to fix ReadyNAS packaging. This one is not necessary anymore as Plex renamed their packages for RN.