mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 14:21:49 +02:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons into alexbelgium-master
This commit is contained in:
@@ -22,14 +22,18 @@ FROM ${BUILD_FROM}
|
||||
##################
|
||||
|
||||
# use /data instead of /config for hass.io environment
|
||||
RUN sed -i "s|/config|/config/jackett|g" /etc/services.d/jackett/run \
|
||||
&& sed -i "s|/config|/config/jackett|g" /etc/cont-init.d/30-config \
|
||||
RUN sed -i "s|/config|/config/Jackett|g" /etc/services.d/jackett/run \
|
||||
&& sed -i "s|/config|/config/Jackett|g" /etc/cont-init.d/30-config \
|
||||
\
|
||||
# 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
|
||||
|
||||
# Changes config directory
|
||||
ENV XDG_DATA_HOME="/config" \
|
||||
XDG_CONFIG_HOME="/config"
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
|
||||
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
|
||||
done
|
||||
Reference in New Issue
Block a user