Skip to content

Commit

Permalink
Merge pull request #110 from linuxserver/perms
Browse files Browse the repository at this point in the history
fix system python perms so uv can modify
  • Loading branch information
aptalca authored Oct 13, 2024
2 parents d97fc7a + 024ec9a commit c126882
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."}
Expand Down
9 changes: 8 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-config-homeassistant/run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c126882

Please sign in to comment.