Add RO support

This commit is contained in:
thespad 2024-10-13 16:59:17 +01:00
parent 4d1b0e164e
commit 9e313afccf
No known key found for this signature in database
6 changed files with 28 additions and 2 deletions

View file

@ -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/*

View file

@ -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"