mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 23:55:56 +02:00
correct
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
FROM nathanvaughn/webtrees:latest
|
FROM nathanvaughn/webtrees:latest
|
||||||
|
|
||||||
# Copy root filesystem
|
|
||||||
COPY rootfs /
|
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
ARG BASHIO_VERSION=0.13.1
|
ARG BASHIO_VERSION=0.13.1
|
||||||
ENV WEBTREES_HOME="/data/webtrees"
|
ENV WEBTREES_HOME="/data/webtrees"
|
||||||
@@ -31,12 +28,15 @@ RUN \
|
|||||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||||
&& rm -rf /tmp/bashio || true
|
&& rm -rf /tmp/bashio || true
|
||||||
|
|
||||||
|
# Copy root filesystem
|
||||||
|
COPY rootfs /
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
################
|
################
|
||||||
# Modify image #
|
# Modify image #
|
||||||
################
|
################
|
||||||
# Change data location
|
# Change data location
|
||||||
&& sed -i 's|/etc/services.d/*/run|/scripts/99-run.sh|g' /scripts/90-config_yaml.sh \
|
sed -i 's|/etc/services.d/*/run|/scripts/99-run.sh|g' /scripts/90-config_yaml.sh \
|
||||||
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' \
|
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' \
|
||||||
# Add entry script
|
# Add entry script
|
||||||
&& chown root:root /entrypoint.sh \
|
&& chown root:root /entrypoint.sh \
|
||||||
|
|||||||
Reference in New Issue
Block a user