mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update Dockerfile
This commit is contained in:
@@ -31,11 +31,11 @@ RUN \
|
|||||||
# Change data folder
|
# Change data folder
|
||||||
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
||||||
# Run scripts only once
|
# Run scripts only once
|
||||||
sed -i "1a if [ ! -f /done ]; then /./entrypoint.sh; fi & touch /done" /usr/local/bin/docker-entrypoint.sh && \
|
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh
|
||||||
# Choose elements to run
|
# Choose elements to run
|
||||||
sed -i 's|"$@"|"$(bashio::config "CMD_ARGUMENTS")"|g' /usr/local/bin/docker-entrypoint.sh && \
|
#sed -i 's|"$@"|"$(bashio::config "CMD_ARGUMENTS")"|g' /usr/local/bin/docker-entrypoint.sh && \
|
||||||
# Run with bashio
|
# Run with bashio
|
||||||
sed -i 's|#!/bin/bash|#!/usr/bin/env bashio|g' /usr/local/bin/docker-entrypoint.sh
|
#sed -i 's|#!/bin/bash|#!/usr/bin/env bashio|g' /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
# Define subreaper
|
# Define subreaper
|
||||||
ENV TINI_SUBREAPER=true
|
ENV TINI_SUBREAPER=true
|
||||||
|
|||||||
Reference in New Issue
Block a user