handle tmp folders runtime

This commit is contained in:
aptalca 2023-06-01 11:54:39 -04:00
parent 5dc95053d8
commit 32d699edf2
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548
4 changed files with 3 additions and 5 deletions

View File

@ -21,7 +21,6 @@ RUN \
mkdir -p \
/app/emby \
/tmpnetcore && \
chmod go+w /tmpnetcore && \
if [ -z ${EMBY_RELEASE+x} ]; then \
EMBY_RELEASE=$(curl -s https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest \
| jq -r '. | .tag_name'); \

View File

@ -27,7 +27,6 @@ RUN \
mkdir -p \
/app/emby \
/tmpnetcore && \
chmod go+w /tmpnetcore && \
if [ -z ${EMBY_RELEASE+x} ]; then \
EMBY_RELEASE=$(curl -s https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest \
| jq -r '. | .tag_name'); \

View File

@ -27,7 +27,6 @@ RUN \
mkdir -p \
/app/emby \
/tmpnetcore && \
chmod go+w /tmpnetcore && \
if [ -z ${EMBY_RELEASE+x} ]; then \
EMBY_RELEASE=$(curl -s https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest \
| jq -r '. | .tag_name'); \

View File

@ -10,7 +10,8 @@ PUID=${PUID:-911}
if [ -d /config/config ] && [ ! "$(stat -c %u /config/config)" = "$PUID" ]; then
echo "Change in ownership detected, please be patient while we chown existing files"
echo "This could take some time"
chown abc:abc -R \
lsiown abc:abc -R \
/config
fi
lsiown -R abc:abc /tmp/.dotnet
lsiown abc:abc /tmpnetcore
chmod 777 /tmp/{.dotnet,.dotnet/shm}