mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Update plex-core to support synology packages
checks DISTRO variable in getPlexVersion and parseVersion
This commit is contained in:
parent
54da6bca99
commit
9fc45daa26
1 changed files with 5 additions and 1 deletions
|
@ -228,13 +228,17 @@ isNewerVersion() {
|
|||
parseVersion() {
|
||||
if [ "${REDHAT}" = "yes" ]; then
|
||||
cut -f2- -d- <<< "$1" | cut -f1-4 -d.
|
||||
elif [ "${DISTRO}" = "synology" ]; then
|
||||
cut -f2 -d- <<< "$1"
|
||||
else
|
||||
cut -f2 -d_ <<< "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
getPlexVersion() {
|
||||
if [ "${REDHAT}" != "yes" ]; then
|
||||
if [ "${DISTRO}" = "synology" ]; then
|
||||
synopkg version "Plex Media Server" 2>/dev/null
|
||||
elif [ "${REDHAT}" != "yes" ]; then
|
||||
dpkg-query --showformat='${Version}' --show plexmediaserver 2>/dev/null
|
||||
elif hash rpm 2>/dev/null; then
|
||||
local rpmtemp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue