Replace existing chown with lsiown
Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
parent
d5e04e3193
commit
b046c3ffb4
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
# create folders
|
# create folders
|
||||||
if [ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]; then \
|
if [ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]; then \
|
||||||
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
|
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
|
||||||
chown -R abc:abc /config
|
lsiown -R abc:abc /config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check Library permissions
|
# check Library permissions
|
||||||
|
|
@ -11,7 +11,7 @@ PUID=${PUID:-911}
|
||||||
if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
|
if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
|
||||||
echo "Change in ownership detected, please be patient while we chown existing files"
|
echo "Change in ownership detected, please be patient while we chown existing files"
|
||||||
echo "This could take some time"
|
echo "This could take some time"
|
||||||
chown abc:abc -R \
|
lsiown abc:abc -R \
|
||||||
/config/Library
|
/config/Library
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -21,6 +21,6 @@ if [[ -f "/config/Library/Application Support/Plex Media Server/plexmediaserver.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# permissions (non-recursive) on config root and folders
|
# permissions (non-recursive) on config root and folders
|
||||||
chown abc:abc \
|
lsiown abc:abc \
|
||||||
/config \
|
/config \
|
||||||
/config/*
|
/config/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue