cowboy / synology-update-plex

Script to Auto Update Plex Media Server on Synology NAS
113 stars 22 forks source link

FAIL: Unable to find release for armv7l/armv7hf_neon #31

Closed ngthwi closed 1 year ago

ngthwi commented 3 years ago

Hello,

Thanks again for your work.

Since the latest version (1.23.2.4656-85f0adf5b), the script is unable to find the URL for armv7hf_neon

I use the latest script and the issue occurs on all the armv7hf_neon NAS I'm using

No issue with x86_64 arch though...

ngthwi commented 3 years ago

I found the issue: the arch name has been replaced from armv7hf_neon to armv7neon in Plex download url...

Here is the fix: function get_arch() { local arch machine=$1 hw_version=$2 if [[ "$machine" =~ armv7 ]]; then declare -A model_machine_map model_machine_map[DS414j]=armv7neon model_machine_map[DS115j]=armv7hf model_machine_map[RS815]=armv7hf model_machine_map[DS216se]=armv7hf model_machine_map[DS215jv10-j]=armv7neon if [[ "${model_machine_map[$hwversion]+}" ]]; then arch=${model_machine_map[$hw_version]} elif [[ "${hw_version//[^0-9]/}" =~ 1[5-8]$ ]]; then arch=armv7neon else arch=armv7hf fi else arch=$machine fi echo $arch }