mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Update version check for Synology 7.2+
This commit is contained in:
parent
4cd0d0e0aa
commit
1da06d8312
1 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ parseVersion() {
|
||||||
cut -f2- -d- <<< "$1" | cut -f1-4 -d.
|
cut -f2- -d- <<< "$1" | cut -f1-4 -d.
|
||||||
elif [ "${DISTRO}" = "synology" ]; then
|
elif [ "${DISTRO}" = "synology" ]; then
|
||||||
cut -f2-3 -d- <<< "$1"
|
cut -f2-3 -d- <<< "$1"
|
||||||
elif [ "${DISTRO}" = "synology-dsm7" ]; then
|
elif [ $(echo "${DISTRO}" | cut -c -13) = "synology-dsm7" ]; then
|
||||||
cut -f2 -d- <<< "$1"
|
cut -f2 -d- <<< "$1"
|
||||||
else
|
else
|
||||||
cut -f2 -d_ <<< "$1"
|
cut -f2 -d_ <<< "$1"
|
||||||
|
@ -242,7 +242,7 @@ getPlexVersion() {
|
||||||
dpkg-query --showformat='${Version}' --show plexmediaserver 2>/dev/null
|
dpkg-query --showformat='${Version}' --show plexmediaserver 2>/dev/null
|
||||||
elif [ "${DISTRO}" = "synology" ]; then
|
elif [ "${DISTRO}" = "synology" ]; then
|
||||||
synopkg version "Plex Media Server" 2>/dev/null
|
synopkg version "Plex Media Server" 2>/dev/null
|
||||||
elif [ "${DISTRO}" = "synology-dsm7" ]; then
|
elif [ $(echo "${DISTRO}" | cut -c -13) = "synology-dsm7" ]; then
|
||||||
synopkg version "PlexMediaServer" 2>/dev/null | cut -f1 -d-
|
synopkg version "PlexMediaServer" 2>/dev/null | cut -f1 -d-
|
||||||
elif [ "${DISTRO}" = "redhat" ]; then
|
elif [ "${DISTRO}" = "redhat" ]; then
|
||||||
local rpmtemp
|
local rpmtemp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue