You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-plex/init/99_chown_plex_owned_files.sh

10 lines
256 B

#!/bin/bash
if [ -d "/config/Library" ]; then
find "/config/Library" \! -user abc -exec chown -hv abc:abc {} \;
find "/config/Library" \! -group abc -exec chown -hv abc:abc {} \;
find "/config/Library/Application Support/Plex Media Server/Plug-ins"
fi