mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-21 08:11:50 +02:00
Remove edge
This commit is contained in:
@@ -43,24 +43,6 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
|
|||||||
ARG CONFIGLOCATION="/config/data_kde"
|
ARG CONFIGLOCATION="/config/data_kde"
|
||||||
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
||||||
|
|
||||||
# Install edge
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
||||||
RUN apt-get update && \
|
|
||||||
echo "**** install edge ****" && \
|
|
||||||
apt-get install --no-install-recommends -y ca-certificates && \
|
|
||||||
if [ -z ${EDGE_VERSION+x} ]; then \
|
|
||||||
EDGE_VERSION=$(curl -sL https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/ | \
|
|
||||||
awk -F'(<a href="microsoft-edge-stable_|_amd64.deb\")' '/href=/ {print $2}' | sort --version-sort | tail -1); \
|
|
||||||
fi && \
|
|
||||||
for i in $(seq 1 5); do \
|
|
||||||
curl -o /tmp/edge.deb -L "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_${EDGE_VERSION}_amd64.deb" && \
|
|
||||||
dpkg -I /tmp/edge.deb && break || sleep 10; \
|
|
||||||
done && \
|
|
||||||
apt-get install --no-install-recommends -y /tmp/edge.deb && \
|
|
||||||
echo "**** edge docker tweaks ****" && \
|
|
||||||
if [ -f /usr/bin/microsoft-edge-stable ]; then mv /usr/bin/microsoft-edge-stable /usr/bin/microsoft-edge-real; \
|
|
||||||
else /usr/bin/microsoft-edge /usr/bin/microsoft-edge-real; fi || true
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 3 Install apps #
|
# 3 Install apps #
|
||||||
##################
|
##################
|
||||||
|
|||||||
Reference in New Issue
Block a user