mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-01-16 17:31:46 +08:00
Replace existing chown with lsiown
Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
parent
d5e04e3193
commit
b046c3ffb4
@ -3,7 +3,7 @@
|
||||
# create folders
|
||||
if [ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]; then \
|
||||
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
|
||||
chown -R abc:abc /config
|
||||
lsiown -R abc:abc /config
|
||||
fi
|
||||
|
||||
# check Library permissions
|
||||
@ -11,7 +11,7 @@ PUID=${PUID:-911}
|
||||
if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
|
||||
echo "Change in ownership detected, please be patient while we chown existing files"
|
||||
echo "This could take some time"
|
||||
chown abc:abc -R \
|
||||
lsiown abc:abc -R \
|
||||
/config/Library
|
||||
fi
|
||||
|
||||
@ -21,6 +21,6 @@ if [[ -f "/config/Library/Application Support/Plex Media Server/plexmediaserver.
|
||||
fi
|
||||
|
||||
# permissions (non-recursive) on config root and folders
|
||||
chown abc:abc \
|
||||
lsiown abc:abc \
|
||||
/config \
|
||||
/config/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user