Merge pull request #112 from linuxserver/chown

chown system python packages
This commit is contained in:
aptalca 2024-10-14 08:53:42 -04:00 committed by GitHub
commit b77dbd492e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 3 deletions

View File

@ -233,6 +233,7 @@ RUN \
chmod -R g+w /usr/local && \
groupadd lsio && \
groupmod -g 7310 lsio && \
mv /usr/local/lib/python3.12 /usr/local/lib/python3.12.bak && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

View File

@ -233,6 +233,7 @@ RUN \
chmod -R g+w /usr/local && \
groupadd lsio && \
groupmod -g 7310 lsio && \
mv /usr/local/lib/python3.12 /usr/local/lib/python3.12.bak && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

2
Jenkinsfile vendored
View File

@ -34,7 +34,7 @@ pipeline {
CI_WEB = 'true'
CI_PORT = '8123'
CI_SSL = 'false'
CI_DELAY = '120'
CI_DELAY = '240'
CI_DOCKERENV = 'TZ=Europe/London'
CI_AUTH = ''
CI_WEBPATH = ''

View File

@ -23,7 +23,7 @@ repo_vars:
- CI_WEB = 'true'
- CI_PORT = '8123'
- CI_SSL = 'false'
- CI_DELAY = '120'
- CI_DELAY = '240'
- CI_DOCKERENV = 'TZ=Europe/London'
- CI_AUTH = ''
- CI_WEBPATH = ''

View File

@ -10,7 +10,14 @@ rm -rf \
if ! id -G abc | grep -qw "7310"; then
usermod -a -G lsio abc
fi
PUID=${PUID:-911}
PY_LOCAL_PATH=$(find /usr/local/lib -maxdepth 1 -name python* -type d)
PY_LOCAL_PATH="${PY_LOCAL_PATH%.bak}"
if [[ -d "${PY_LOCAL_PATH}.bak" ]]; then
echo "**** New container detected, fixing python package permissions. This may take a while. ****"
mv "${PY_LOCAL_PATH}.bak" "${PY_LOCAL_PATH}"
chown -R abc:abc "${PY_LOCAL_PATH}"
fi
# set permissions
echo "Setting permissions"
lsiown -R abc:abc \