mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-21 05:20:31 +02:00
Allow multiple elements
https://github.com/alexbelgium/hassio-addons/issues/525
This commit is contained in:
@@ -31,10 +31,10 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
|||||||
# hadolint ignore=SC2016
|
# hadolint ignore=SC2016
|
||||||
RUN \
|
RUN \
|
||||||
# CORRECT PLEX CLAIM
|
# CORRECT PLEX CLAIM
|
||||||
file="$(grep -sril 'Server claimed successfully, navigate to http://serverip:32400/web to complete plex setup' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d)" \
|
file=$(grep -sril 'Server claimed successfully) \
|
||||||
&& sed -i 's/with-contenv bash/with-contenv bashio/g' "$file" \
|
&& sed -i 's/bash/bashio/g' $file \
|
||||||
&& sed -i '2iexport PLEX_CLAIM=$(bashio::config "claim")' "$file" \
|
&& sed -i '2iexport PLEX_CLAIM=$(bashio::config "claim")' $file \
|
||||||
&& sed -i '3i[ $PLEX_CLAIM = "Get_from_https://www.plex.tv/claim" ] && bashio::log.warning "Please change the PLEX_CLAIM code from the options" && exit 1 || true' "$file"
|
&& sed -i '3i[ $PLEX_CLAIM = "Get_from_https://www.plex.tv/claim" ] && bashio::log.warning "Please change the PLEX_CLAIM code from the options" && exit 1 || true' $file
|
||||||
|
|
||||||
# Global LSIO modifications
|
# Global LSIO modifications
|
||||||
ARG CONFIGLOCATION="/config"
|
ARG CONFIGLOCATION="/config"
|
||||||
|
|||||||
Reference in New Issue
Block a user