This commit is contained in:
Alexandre
2021-11-30 13:40:15 +01:00
parent 32d6a8d18c
commit 4c648d2449
2 changed files with 7 additions and 12 deletions

View File

@@ -29,16 +29,17 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \
\
&& rm -rf /tmp/bashio || true
RUN \
################
# Modify image #
################
# Change data location
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' || true
# Add entry script
RUN chown root:root /entrypoint.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' \
# Add entry script
&& chown root:root /entrypoint.sh \
&& chmod 777 /entrypoint.sh \
# Add end script
&& sed -i '$ d' /docker-entrypoint.sh

View File

@@ -13,12 +13,6 @@ if [ ! -f "/usr/bin/bashio" ]; then
curl &&
apt-get clean
################
# Modify image #
################
# Change data location
grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g'
###################
# Install bashio #
##################