mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-31 08:57:42 +01:00
Allow interaction with linuxserver PID/GID
This commit is contained in:
@@ -26,13 +26,17 @@ RUN echo 'https://dl-3.alpinelinux.org/alpine/latest-stable/main' > /etc/apk/rep
|
||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
&& rm -fr /tmp/bashio.tar.gz \
|
||||
|| echo "Error, no OCR available"
|
||||
|| echo "Error, no OCR available"
|
||||
|
||||
# modify/copy files
|
||||
RUN sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \
|
||||
&& sed -i "s|config|data/config|g" /etc/cont-init.d/* \
|
||||
&& sed -i "s|data|share/nextcloud|g" /etc/services.d/nginx/* \
|
||||
&& sed -i "s|config|data/config|g" /etc/services.d/nginx/*
|
||||
&& sed -i "s|config|data/config|g" /etc/services.d/nginx/* \
|
||||
# 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 root/ /
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
"webui": "https://[HOST]:[PORT:443]",
|
||||
"panel_icon": "mdi:cloud",
|
||||
"options": {
|
||||
"PUID": 1001,
|
||||
"PGID": 1001,
|
||||
"PUID": 0,
|
||||
"PGID": 0,
|
||||
"trusted_domains": ["your-domain"],
|
||||
"OCR": false,
|
||||
"OCRLANG": "fra"
|
||||
|
||||
Reference in New Issue
Block a user