mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 00:01:36 +01:00
Try entrypoint
This commit is contained in:
@@ -50,7 +50,7 @@ ENV \
|
||||
RUN \
|
||||
sed -i 's|usr/bin/env bash|usr/bin/env bashio|g' /sbin/docker-entrypoint.sh && \
|
||||
# Run entrypoint
|
||||
sed -i '2i /./entrypoint.sh' /sbin/docker-entrypoint.sh && \
|
||||
#sed -i '2i /./entrypoint.sh' /sbin/docker-entrypoint.sh && \
|
||||
# Set variables
|
||||
sed -i '2i bashio::log.info "Defining variables"' /sbin/docker-entrypoint.sh && \
|
||||
sed -i '2i if bashio::config.has_value "PUID"; then export USERMAP_UID=$(bashio::config "PUID"); fi' /sbin/docker-entrypoint.sh && \
|
||||
@@ -90,7 +90,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
||||
RUN chmod 777 /entrypoint.sh
|
||||
#WORKDIR /
|
||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||
#ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
############
|
||||
|
||||
Reference in New Issue
Block a user