mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 16:15:55 +02:00
gclib compatibility
This commit is contained in:
@@ -8,10 +8,13 @@ ENV NEXTCLOUD_PATH="/data/config/www/nextcloud"
|
|||||||
|
|
||||||
# Added repo to solve issues with some systems that cause error code 1 when fetching apk
|
# Added repo to solve issues with some systems that cause error code 1 when fetching apk
|
||||||
# Add bashio
|
# Add bashio
|
||||||
RUN echo 'https://dl-3.alpinelinux.org/alpine/latest-stable/main' > /etc/apk/repositories \
|
RUN \
|
||||||
|
#Avoid issues with sources
|
||||||
|
echo 'https://dl-3.alpinelinux.org/alpine/latest-stable/main' > /etc/apk/repositories \
|
||||||
&& echo '@testing https://dl-3.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
&& echo '@testing https://dl-3.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
||||||
&& echo '@community https://dl-3.alpinelinux.org/alpine/latest-stable/community' >> /etc/apk/repositories \
|
&& echo '@community https://dl-3.alpinelinux.org/alpine/latest-stable/community' >> /etc/apk/repositories \
|
||||||
\
|
\
|
||||||
|
#Install bashio
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
curl jq \
|
curl jq \
|
||||||
&& curl -J -L -o /tmp/bashio.tar.gz \
|
&& curl -J -L -o /tmp/bashio.tar.gz \
|
||||||
@@ -23,7 +26,10 @@ RUN echo 'https://dl-3.alpinelinux.org/alpine/latest-stable/main' > /etc/apk/rep
|
|||||||
\
|
\
|
||||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||||
&& rm -fr /tmp/bashio.tar.gz
|
&& rm -fr /tmp/bashio.tar.gz \
|
||||||
|
\
|
||||||
|
#gclib compatibility
|
||||||
|
&& apk add --no-cache gcompat
|
||||||
|
|
||||||
# modify/copy files
|
# modify/copy files
|
||||||
RUN sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \
|
RUN sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \
|
||||||
|
|||||||
Reference in New Issue
Block a user