Skip to content

Commit

Permalink
Update plex.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nemchik authored Jan 8, 2024
1 parent 36e6c16 commit 38ec285
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/apps/plex.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@ you need assistance setting up this application please visit our
One possible resolution to this issue is to remove the codecs folder:

```bash
rm -rf "~/.config/appdata/plex/Library/Application Support/Plex Media Server/Codecs"
find "~/.config/appdata/plex/Library/Application Support/Plex Media Server/Codecs"* -type d -exec rm -rv {} +
```

Or place a custom init script in your config (ex:
`~/.config/appdata/plex/custom-cont-init.d/00-plex-remove-codecs`):

```bash
#!/usr/bin/with-contenv bash
set -Eeuo pipefail
set -euo pipefail
IFS=$'\n\t'

rm -rf "/config/Library/Application Support/Plex Media Server/Codecs"
echo "Codecs removed."
echo "Remove codecs: start"

find "/config/Library/Application Support/Plex Media Server/Codecs/"* -type d -exec rm -rv {} +

echo "Remove codecs: end"
```

This will run every time the container restarts.
Expand Down

0 comments on commit 38ec285

Please sign in to comment.