Skip to content

Commit

Permalink
Updated path for DSM 7 for --plex-pass option (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
programatix committed May 11, 2023
1 parent 436280f commit 55fdddb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion update-plex.sh
Expand Up @@ -128,7 +128,11 @@ function build_downloads_url() {
if [[ "$plex_pass" ]]; then
header "Enabling Plex Pass releases"

local pms_dir="$(echo /volume*"/Plex/Library/Application Support/Plex Media Server")"
if [ "$pms_package_name" = "PlexMediaServer" ]; then
local pms_dir="$(echo "/var/packages/PlexMediaServer/home/Plex Media Server")"
else
local pms_dir="$(echo /volume*"/Plex/Library/Application Support/Plex Media Server")"
fi
if [[ ! -d "$pms_dir" ]]; then
pms_dir="$(find /volume* -type d -name 'Plex Media Server' -execdir test -e "{}/Preferences.xml" \; -print -quit)"
fi
Expand Down

0 comments on commit 55fdddb

Please sign in to comment.