From ef4f066697d1fabca282ef88526bb41ff291bafb Mon Sep 17 00:00:00 2001 From: David Knaack Date: Sat, 5 Feb 2022 12:39:25 +0100 Subject: [PATCH] plex: fix plugin/scanner symlink cleanup --- pkgs/servers/plex/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/servers/plex/default.nix b/pkgs/servers/plex/default.nix index fd580d52d8a0..1855ac1af54d 100644 --- a/pkgs/servers/plex/default.nix +++ b/pkgs/servers/plex/default.nix @@ -65,6 +65,7 @@ buildFHSUserEnv { # First, remove all of the symlinks in the plugins directory. while IFS= read -r -d $'\0' f; do echo "Removing plugin symlink: $f" + rm "$f" done < <(find "$pluginDir" -type l -print0) echo "Symlinking plugins" @@ -94,6 +95,7 @@ buildFHSUserEnv { echo "Removing old symlinks" while IFS= read -r -d $'\0' f; do echo "Removing scanner symlink: $f" + rm "$f" done < <(find "$scannerDir" -type l -print0) echo "Symlinking scanners"