mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
Use existing logic
This commit is contained in:
@@ -33,9 +33,9 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
|||||||
#ENV FIREFLY_III_PATH="/data/firefly"
|
#ENV FIREFLY_III_PATH="/data/firefly"
|
||||||
#WORKDIR $FIREFLY_III_PATH
|
#WORKDIR $FIREFLY_III_PATH
|
||||||
|
|
||||||
RUN \
|
#RUN \
|
||||||
mkdir -p /scripts && \
|
# mkdir -p /scripts && \
|
||||||
mv /etc/entrypoint.d/11-execute-things.sh /scripts/
|
# mv /etc/entrypoint.d/11-execute-things.sh /scripts/
|
||||||
|
|
||||||
#RUN \
|
#RUN \
|
||||||
# # Change data location
|
# # Change data location
|
||||||
@@ -82,7 +82,12 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.
|
|||||||
# Adapt shebang
|
# Adapt shebang
|
||||||
RUN \
|
RUN \
|
||||||
sed -i "s|/command/with-contenv bashio|/bin/bash bashio|g" /ha_entrypoint.sh && \
|
sed -i "s|/command/with-contenv bashio|/bin/bash bashio|g" /ha_entrypoint.sh && \
|
||||||
rm -r /etc/s6*
|
# Allow passwordless root
|
||||||
|
echo "www-data ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
|
# Execute entrypoint
|
||||||
|
sed -i "s|/usr/bin/env sh|/usr/bin/env bashio|g" /etc/entrypoint.d/11-execute-things.sh && \
|
||||||
|
chmod 777 /ha_entrypoint.sh && \
|
||||||
|
sed -i "1a source /ha_entrypoint.sh" /etc/entrypoint.d/11-execute-things.sh
|
||||||
#RUN cat /ha_entrypoint.sh && \
|
#RUN cat /ha_entrypoint.sh && \
|
||||||
# sed -i "1i \#\!/bin/bash" /ha_entrypoint.sh
|
# sed -i "1i \#\!/bin/bash" /ha_entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user