mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-07 05:32:30 +02:00
correct
This commit is contained in:
@@ -29,16 +29,17 @@ RUN \
|
|||||||
| tar -xzf - --strip 1 -C /tmp/bashio \
|
| tar -xzf - --strip 1 -C /tmp/bashio \
|
||||||
&& 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 -rf /tmp/bashio \
|
&& rm -rf /tmp/bashio || true
|
||||||
\
|
|
||||||
|
RUN \
|
||||||
################
|
################
|
||||||
# Modify image #
|
# Modify image #
|
||||||
################
|
################
|
||||||
# Change data location
|
# Change data location
|
||||||
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' || true
|
&& 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
|
# Add entry script
|
||||||
RUN chown root:root /entrypoint.sh \
|
&& chown root:root /entrypoint.sh \
|
||||||
&& chmod 777 /entrypoint.sh \
|
&& chmod 777 /entrypoint.sh \
|
||||||
# Add end script
|
# Add end script
|
||||||
&& sed -i '$ d' /docker-entrypoint.sh
|
&& sed -i '$ d' /docker-entrypoint.sh
|
||||||
|
|||||||
@@ -13,12 +13,6 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
|||||||
curl &&
|
curl &&
|
||||||
apt-get clean
|
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 #
|
# Install bashio #
|
||||||
##################
|
##################
|
||||||
|
|||||||
Reference in New Issue
Block a user