Add RO support
This commit is contained in:
parent
4d1b0e164e
commit
9e313afccf
6 changed files with 28 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
mkdir -p /run/plex-temp
|
||||
|
||||
# create folders
|
||||
if [[ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]]; then
|
||||
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
|
||||
|
|
@ -35,5 +37,6 @@ fi
|
|||
|
||||
# permissions (non-recursive) on config root and folders
|
||||
lsiown abc:abc \
|
||||
/run/plex-temp \
|
||||
/config \
|
||||
/config/*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -z ${LSIO_READ_ONLY_FS} ]] || [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
echo "Runtime update not supported with read-only or non-root operation, skipping."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# If docker manages versioning exit
|
||||
if [[ -n "${VERSION}" ]] && [[ "${VERSION}" == "docker" ]]; then
|
||||
echo "Docker is used for versioning skip update check"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue