From 100e1ffeece2cdb8ff99366fd954f1bd7a95bb3c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:28:39 +0100 Subject: [PATCH] Update Dockerfile --- fireflyiii_data_importer/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/Dockerfile b/fireflyiii_data_importer/Dockerfile index b255c874e..deac59cb5 100644 --- a/fireflyiii_data_importer/Dockerfile +++ b/fireflyiii_data_importer/Dockerfile @@ -61,7 +61,7 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh # Manual apps -ENV PACKAGES="cron bash sudo" +ENV PACKAGES="cron bash gosu" # Automatic apps & bashio ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh" @@ -82,7 +82,7 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif. # Adapt shebang RUN \ # Run as www-data - sed -i "s|/usr|sudo -u www-data /usr|g" /etc/s6*/s6*/php-fpm/run && \ + sed -i "s|/usr|gosu www-data /usr|g" /etc/s6*/s6*/php-fpm/run && \ # 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 #sed -i "s|/command/with-contenv bashio|/bin/bash bashio|g" /ha_entrypoint.sh && \