Skip to content

Commit c126882

Browse files
authored
Merge pull request #110 from linuxserver/perms
fix system python perms so uv can modify
2 parents d97fc7a + 024ec9a commit c126882

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ RUN \
229229
for cleanfiles in *.pyc *.pyo; do \
230230
find /usr/local/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + ; \
231231
done && \
232+
chown -R root:7310 /usr/local && \
233+
chmod -R g+w /usr/local && \
234+
groupadd lsio && \
235+
groupmod -g 7310 lsio && \
232236
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
233237
echo "**** cleanup ****" && \
234238
apk del --purge \

Dockerfile.aarch64

+4
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ RUN \
229229
for cleanfiles in *.pyc *.pyo; do \
230230
find /usr/local/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + ; \
231231
done && \
232+
chown -R root:7310 /usr/local && \
233+
chmod -R g+w /usr/local && \
234+
groupadd lsio && \
235+
groupmod -g 7310 lsio && \
232236
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
233237
echo "**** cleanup ****" && \
234238
apk del --purge \

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
316316

317317
## Versions
318318

319+
* **12.10.24:** - Allow uv to modify system python packages.
319320
* **07.10.24:** - Switch to `uv` instead of `pip`.
320321
* **03.07.24:** - Rebase to alpine 3.20.
321322
* **05.03.24:** - Add mime.types to help with detection of certain media files.

readme-vars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ app_setup_block: |
7474
unraid_template_sync: false
7575
# changelog
7676
changelogs:
77+
- {date: "12.10.24:", desc: "Allow uv to modify system python packages."}
7778
- {date: "07.10.24:", desc: "Switch to `uv` instead of `pip`."}
7879
- {date: "03.07.24:", desc: "Rebase to alpine 3.20."}
7980
- {date: "05.03.24:", desc: "Add mime.types to help with detection of certain media files."}

root/etc/s6-overlay/s6-rc.d/init-config-homeassistant/run

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
# shellcheck shell=bash
33

44
# migration
5-
rm -rf /config/lsiopy
5+
rm -rf \
6+
/config/lsiopy \
7+
/config/.local/{bin,lib}
8+
9+
# Add abc user to python system install owner group, lsio (7310)
10+
if ! id -G abc | grep -qw "7310"; then
11+
usermod -a -G lsio abc
12+
fi
613

714
# set permissions
815
echo "Setting permissions"

0 commit comments

Comments
 (0)