Merge pull request #448 from evan314159/readonly-tmpdir
This commit is contained in:
commit
468a4995e0
3 changed files with 10 additions and 2 deletions
|
|
@ -371,6 +371,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **15.03.26:** - Allow TMPDIR to be changed to better support read-only containers
|
||||||
|
* **15.03.26:** - Fix initial claim setup on non-root containers
|
||||||
* **04.11.24:** - Add Nvidia capability needed for h265
|
* **04.11.24:** - Add Nvidia capability needed for h265
|
||||||
* **18.07.24:** - Rebase to Ubuntu Noble.
|
* **18.07.24:** - Rebase to Ubuntu Noble.
|
||||||
* **12.02.24:** - Use universal hardware acceleration blurb
|
* **12.02.24:** - Use universal hardware acceleration blurb
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,8 @@ init_diagram: |
|
||||||
"plex:latest" <- Base Images
|
"plex:latest" <- Base Images
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- {date: "15.03.26:", desc: "Allow TMPDIR to be changed to better support read-only containers"}
|
||||||
|
- {date: "15.03.26:", desc: "Fix initial claim setup on non-root containers"}
|
||||||
- {date: "04.11.24:", desc: "Add Nvidia capability needed for h265"}
|
- {date: "04.11.24:", desc: "Add Nvidia capability needed for h265"}
|
||||||
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
|
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
|
||||||
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}
|
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
mkdir -p /run/plex-temp
|
# remove plex temporary directory after unclean stop
|
||||||
|
if [[ -d "${TMPDIR}" ]]; then
|
||||||
|
rm -rf "${TMPDIR}"
|
||||||
|
fi
|
||||||
|
mkdir -p ${TMPDIR}
|
||||||
|
|
||||||
# create folders
|
# create folders
|
||||||
if [[ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]]; then
|
if [[ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]]; then
|
||||||
|
|
@ -40,7 +44,7 @@ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
|
||||||
# permissions (non-recursive) on config root and folders
|
# permissions (non-recursive) on config root and folders
|
||||||
lsiown abc:abc \
|
lsiown abc:abc \
|
||||||
/run/plex-temp \
|
"${TMPDIR}" \
|
||||||
/config \
|
/config \
|
||||||
/config/*
|
/config/*
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue