mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update Dockerfile
This commit is contained in:
@@ -86,11 +86,12 @@ RUN \
|
|||||||
# Move execute things
|
# Move execute things
|
||||||
mkdir -p /scripts && \
|
mkdir -p /scripts && \
|
||||||
mv /etc/entrypoint.d/11-execute-things.sh /scripts/ && \
|
mv /etc/entrypoint.d/11-execute-things.sh /scripts/ && \
|
||||||
|
# Allow passwordless root
|
||||||
|
echo "www-data ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
# Adapt files
|
# Adapt files
|
||||||
for files in /etc/cont-init.d/*; do sed -i "s|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g" "$files"; done
|
for files in /etc/cont-init.d/*; do sed -i "s|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g" "$files"; done
|
||||||
#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 && \
|
||||||
# Allow passwordless root
|
|
||||||
#echo "www-data ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
|
||||||
# Execute entrypoint
|
# Execute entrypoint
|
||||||
#sed -i "s|/usr/bin/env sh|/usr/bin/env bashio|g" /etc/entrypoint.d/11-execute-things.sh && \
|
#sed -i "s|/usr/bin/env sh|/usr/bin/env bashio|g" /etc/entrypoint.d/11-execute-things.sh && \
|
||||||
#chmod 777 /ha_entrypoint.sh && \
|
#chmod 777 /ha_entrypoint.sh && \
|
||||||
|
|||||||
Reference in New Issue
Block a user