Merge pull request #110 from linuxserver/perms

fix system python perms so uv can modify
This commit is contained in:
aptalca 2024-10-13 12:47:38 -04:00 committed by GitHub
commit c126882f0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 1 deletions

View File

@ -229,6 +229,10 @@ RUN \
for cleanfiles in *.pyc *.pyo; do \
find /usr/local/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + ; \
done && \
chown -R root:7310 /usr/local && \
chmod -R g+w /usr/local && \
groupadd lsio && \
groupmod -g 7310 lsio && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

View File

@ -229,6 +229,10 @@ RUN \
for cleanfiles in *.pyc *.pyo; do \
find /usr/local/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + ; \
done && \
chown -R root:7310 /usr/local && \
chmod -R g+w /usr/local && \
groupadd lsio && \
groupmod -g 7310 lsio && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

View File

@ -316,6 +316,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **12.10.24:** - Allow uv to modify system python packages.
* **07.10.24:** - Switch to `uv` instead of `pip`.
* **03.07.24:** - Rebase to alpine 3.20.
* **05.03.24:** - Add mime.types to help with detection of certain media files.

View File

@ -74,6 +74,7 @@ app_setup_block: |
unraid_template_sync: false
# changelog
changelogs:
- {date: "12.10.24:", desc: "Allow uv to modify system python packages."}
- {date: "07.10.24:", desc: "Switch to `uv` instead of `pip`."}
- {date: "03.07.24:", desc: "Rebase to alpine 3.20."}
- {date: "05.03.24:", desc: "Add mime.types to help with detection of certain media files."}

View File

@ -2,7 +2,14 @@
# shellcheck shell=bash
# migration
rm -rf /config/lsiopy
rm -rf \
/config/lsiopy \
/config/.local/{bin,lib}
# Add abc user to python system install owner group, lsio (7310)
if ! id -G abc | grep -qw "7310"; then
usermod -a -G lsio abc
fi
# set permissions
echo "Setting permissions"