Skip to content

Commit 468a499

Browse files
authored
Merge pull request #448 from evan314159/readonly-tmpdir
2 parents 2186587 + a56f4d3 commit 468a499

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
371371

372372
## Versions
373373

374+
* **15.03.26:** - Allow TMPDIR to be changed to better support read-only containers
375+
* **15.03.26:** - Fix initial claim setup on non-root containers
374376
* **04.11.24:** - Add Nvidia capability needed for h265
375377
* **18.07.24:** - Rebase to Ubuntu Noble.
376378
* **12.02.24:** - Use universal hardware acceleration blurb

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ init_diagram: |
125125
"plex:latest" <- Base Images
126126
# changelog
127127
changelogs:
128+
- {date: "15.03.26:", desc: "Allow TMPDIR to be changed to better support read-only containers"}
129+
- {date: "15.03.26:", desc: "Fix initial claim setup on non-root containers"}
128130
- {date: "04.11.24:", desc: "Add Nvidia capability needed for h265"}
129131
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
130132
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}

root/etc/s6-overlay/s6-rc.d/init-plex-chown/run

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
mkdir -p /run/plex-temp
4+
# remove plex temporary directory after unclean stop
5+
if [[ -d "${TMPDIR}" ]]; then
6+
rm -rf "${TMPDIR}"
7+
fi
8+
mkdir -p ${TMPDIR}
59

610
# create folders
711
if [[ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]]; then
@@ -40,7 +44,7 @@ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
4044

4145
# permissions (non-recursive) on config root and folders
4246
lsiown abc:abc \
43-
/run/plex-temp \
47+
"${TMPDIR}" \
4448
/config \
4549
/config/*
4650
fi

0 commit comments

Comments
 (0)