mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Change entrypoint
https://github.com/alexbelgium/hassio-addons/issues/747
This commit is contained in:
@@ -79,15 +79,15 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Change data folder
|
# Change data folder
|
||||||
sed -i "1a /./entrypoint.sh" /usr/local/bin/docker-entrypoint.sh && \
|
# sed -i "1a /./entrypoint.sh" /usr/local/bin/docker-entrypoint.sh && \
|
||||||
# Run scripts only once
|
# Run scripts only once
|
||||||
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh
|
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh
|
||||||
|
|
||||||
#RUN chmod 777 /entrypoint.sh
|
RUN chmod 777 /entrypoint.sh
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
ENTRYPOINT [ "/usr/bin/env" ]
|
||||||
#CMD [ "/entrypoint.sh" ]
|
CMD [ "/entrypoint.sh" ]
|
||||||
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
############
|
############
|
||||||
# 5 Labels #
|
# 5 Labels #
|
||||||
|
|||||||
Reference in New Issue
Block a user