docker-plex-wireguard/init/99_chown_plex_owned_files.sh
ljm42 0219898db6 Update 99_chown_plex_owned_files.sh
* Operate one directory higher, on "/config/Library" instead of "/config/Library/Application Support"
* Make all files user and group writable (chmod ug+w) so they can be modifed over a network share
2015-07-18 21:33:41 -07:00

8 lines
214 B
Bash

#!/bin/bash
if [ -d "/config/Library" ]; then
find "/config/Library" \! -user abc -exec chown -h abc:abc {} \;
find "/config/Library" \! -group abc -exec chown -h abc:abc {} \;
chmod -R ug+w "/config/Library"
fi