mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-13 19:31:01 +01: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 \
|
||||
# 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
|
||||
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
|
||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||
#CMD [ "/entrypoint.sh" ]
|
||||
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
CMD [ "/entrypoint.sh" ]
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
############
|
||||
# 5 Labels #
|
||||
|
||||
Reference in New Issue
Block a user