mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
add yq
This commit is contained in:
@@ -11,19 +11,20 @@ ARG TEMPIO_VERSION=2021.01.0
|
||||
ARG BUILD_ARCH
|
||||
|
||||
RUN \
|
||||
# Install script
|
||||
# Install script
|
||||
chmod a+x /run.sh \
|
||||
\
|
||||
# Add apps
|
||||
# Add apps
|
||||
&& apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
nginx \
|
||||
\
|
||||
# Install tempio
|
||||
# Install tempio
|
||||
&& curl -L -f -s -o /usr/bin/tempio \
|
||||
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
|
||||
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/tempio \
|
||||
\
|
||||
##################
|
||||
@@ -36,22 +37,22 @@ RUN \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
&& rm -rf /tmp/bashio \
|
||||
\
|
||||
# Allow UID and GID setting
|
||||
# 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 \
|
||||
# Correct visualization bug on mobile
|
||||
# && sed -i 's|content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"|content="width=980, initial-scale=1.0"|g' /app/scrutiny-web/index.html \
|
||||
# use /data instead of /config for database
|
||||
# Correct visualization bug on mobile
|
||||
# && sed -i 's|content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"|content="width=980, initial-scale=1.0"|g' /app/scrutiny-web/index.html \
|
||||
# use /data instead of /config for database
|
||||
&& sed -i 's| /config| /data|g' /defaults/scrutiny.yaml \
|
||||
&& sed -i 's| /config| /data|g' /etc/cont-init.d/* \
|
||||
&& sed -i 's| /config| /data|g' /etc/logrotate.d/scrutiny \
|
||||
&& sed -i 's| /config| /data|g' /etc/crontabs/root \
|
||||
# analyse local devices at reboot
|
||||
# && sed -i '$d' /etc/crontabs/root \
|
||||
# && sed -i -e '$a @reboot /run.sh' /etc/crontabs/root \
|
||||
# && sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root \
|
||||
# correct url paths
|
||||
# analyse local devices at reboot
|
||||
# && sed -i '$d' /etc/crontabs/root \
|
||||
# && sed -i -e '$a @reboot /run.sh' /etc/crontabs/root \
|
||||
# && sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root \
|
||||
# correct url paths
|
||||
&& grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g'
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
Reference in New Issue
Block a user