mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
allow PUID PGID setting from config.json
This commit is contained in:
@@ -24,6 +24,10 @@ RUN apt-get update \
|
||||
/var/{cache,log}/* \
|
||||
/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 \
|
||||
# Remove fixed folders, allows connection to webUI
|
||||
&& sed '11,13d' /defaults/qBittorrent.conf \
|
||||
# Allow connection to webUI
|
||||
|
||||
Reference in New Issue
Block a user