i update my dsm to 7.2.2 and i needed update plex with this file https://downloads.plex.tv/plex-media-server-new/1.43.0.10162-b67a664b6/synology-dsm72/PlexMediaServer-1.43.0.10162-b67a664b6-x86_64_DSM72.spk instead of this one https://downloads.plex.tv/plex-media-server-new/1.42.2.10156-f737b826c/synology-dsm72/PlexMediaServer-1.42.2.10156-f737b826c-x86_64_DSM72.spk because my plex was updated to 1.43.
1.43 is a beta version no? how can i avoid beta version?
i use this script to auto-check/update my plex server (for dsm7 so not sure he’s good again for 7.2.2 or 7.3 of dsm):
#!/bin/bash
# Author @loicdugay https://github.com/loicdugay
# Instructions on https://github.com/loicdugay/synology-plex-auto-update
#
# Thanks to
# @mj0nsplex https://forums.plex.tv/u/j0nsplex
# @martinorob https://github.com/martinorob/plexupdate
# @michealespinola https://github.com/michealespinola/syno.plexupdate
# ROOT verification
if [ "$EUID" -ne "0" ];
then
printf " %s\n" "This script MUST be run with root permissions."
/usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script failed.\n\nThis script MUST be run with root permissions."}'
printf "\n"
exit 1
fi
# DSM version verification
DSMVersion=$(cat /etc.defaults/VERSION | grep -i 'majorversion=' | cut -d"\"" -f 2)
/usr/bin/dpkg --compare-versions 7 gt "$DSMVersion"
if [ "$?" -eq "0" ];
then
printf " %s\n" "This script requires DSM 7 to be installed."
/usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script failed.\n\nThis script requires DSM 7 to be installed."}'
printf "\n"
exit 1
fi
# Search for Plex Media Server version
curversion=$(synopkg version "PlexMediaServer")
curversion=$(echo $curversion | grep -oP '^.+?(?=\-)')
splitversion1=$(echo $curversion | cut -d "." -f 1 )
splitversion2=$(echo $curversion | cut -d "." -f 2 )
splitversion3=$(echo $curversion | cut -d "." -f 3 )
splitversion4=$(echo $curversion | cut -d "." -f 4 )
newpath=false
if [ $splitversion1 -ge 1 ]
then
if [ $splitversion2 -ge 24 ]
then
if [ $splitversion3 -ge 2 ]
then
if [ $splitversion4 -ge 4973 ]
then
newpath=true
fi
fi
fi
fi
if [[ $newpath ]];
then
echo Plex version greater than 1.24.2.4973 detected
token=$(cat /volume1/PlexMediaServer/AppData/Plex\ Media\ Server/Preferences.xml | grep -oP 'PlexOnlineToken="\K[^"]+')
else
echo Plex version less than 1.24.2.4973 detected
token=$(cat /volume1/@apphome/PlexMediaServer/Plex\ Media\ Server/Preferences.xml | grep -oP 'PlexOnlineToken="\K[^"]+')
fi
url=$(echo "https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=$token")
jq=$(curl -s ${url})
newversion=$(echo $jq | jq -r '.nas."Synology (DSM 7)".version')
newversion=$(echo $newversion | grep -oP '^.+?(?=\-)')
echo Available version: $newversion
echo Installed version: $curversion
if [ "$newversion" != "$curversion" ]
then
mkdir -p /tmp/plex/ > /dev/null 2>&1
echo New version available, installation in progress:
CPU=$(uname -m)
url=$(echo "${jq}" | jq -r '.nas."Synology (DSM 7)".releases[] | select(.build=="linux-'"${CPU}"'") | .url')
/bin/wget $url -P /tmp/plex/
/usr/syno/bin/synopkg install /tmp/plex/*.spk
sleep 30
/usr/syno/bin/synopkg start "PlexMediaServer"
rm -rf /tmp/plex/*
/usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script has installed the latest available version."}'
else
echo No new version to install.
/usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script does not detect a new version to install."}'
fi
exit
waiting to know i disabled the script