Fix sudo command in Dockerfile entrypoint script

This commit is contained in:
Alexandre
2025-09-01 09:24:23 +02:00
committed by GitHub
parent a50e986052
commit 49dd8060b0

View File

@@ -37,7 +37,7 @@ ENV SYNC_EXERCISES_ON_STARTUP=True \
USER root
RUN echo "wger ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
sed -i "1a sudo -E '/./ha_entrypoint.sh && chown wger /.env' && source /.env" /home/wger/entrypoint.sh
sed -i "1a sudo -E /./ha_entrypoint.sh && sudo -E chown wger /.env && source /.env" /home/wger/entrypoint.sh
##################
# 3 Install apps #