mirror of
https://github.com/linuxserver/docker-homeassistant.git
synced 2026-02-20 08:40:45 +08:00
Merge pull request #110 from linuxserver/perms
fix system python perms so uv can modify
This commit is contained in:
commit
c126882f0c
@ -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 \
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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."}
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user