Update Dockerfile

This commit is contained in:
Alexandre
2022-11-10 10:51:49 +01:00
committed by GitHub
parent 87faa3ef33
commit adfbf9035c

View File

@@ -34,7 +34,7 @@ RUN \
echo '#!/usr/bin/with-contenv bash' > /etc/s6-overlay/s6-rc.d/init-transmission-config/run \
# Allow webui change
&& sed -i "s|bash|bashio|g" /etc/s6-overlay/s6-rc.d/svc-transmission/run \
&& sed -i "1a if bashio::config.has_value 'customUI'; then TRANSMISSION_WEB_HOME=\$(bashio::config 'customUI'); fi" /etc/s6-overlay/s6-rc.d/svc-transmission/run
&& sed -i "1a if bashio::config.has_value 'customUI'; then TRANSMISSION_WEB_HOME=/\$(bashio::config 'customUI')/; fi" /etc/s6-overlay/s6-rc.d/svc-transmission/run
# Global LSIO modifications
ARG CONFIGLOCATION="/config/addons_config/transmission"