mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-04 17:49:40 +08:00
Handle empty /config, pass multiple args to chown
This commit is contained in:
parent
f07f9d553f
commit
2018f9046e
@ -2,6 +2,9 @@
|
||||
|
||||
|
||||
if [ -d "/config/Library" ]; then
|
||||
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} \;
|
||||
find /config/Library ! \( -user abc -a -group abc \) -exec chown -hv abc:abc {} +
|
||||
else
|
||||
mkdir /config/Library
|
||||
chown abc:abc /config/Library
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user