Allow interaction with linuxserver PID/GID

This commit is contained in:
Alexandre
2021-02-05 21:30:38 +01:00
parent 275843bb38
commit 8726231ed2
13 changed files with 68 additions and 39 deletions

View File

@@ -19,7 +19,11 @@ RUN apt-get update \
&& rm -fr \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
/var/lib/apt/lists/* \
# Allow UID and GID setting
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
# copy local files
COPY root/ /