From 7ad415381fce492a0f81734da7a64675e72c6a96 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:30:16 +0100 Subject: [PATCH] update --- .templates/ha_entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 66eb312e2..1afde3640 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -17,8 +17,11 @@ for SCRIPTS in /etc/cont-init.d/*; do chmod a+x "$SCRIPTS" else bashio::log.warning "Script executed with user $(id -u):$(id -g), things can break and chown won't work" - # Disable chown in scripts - sed -i "s/chown /true # chown /g" "$SCRIPTS" + # Disable chown and chmod in scripts + sed -i "s/^chown /true # chown /g" "$SCRIPTS" + sed -i "s/ chown / true # chown /g" "$SCRIPTS" + sed -i "s/^chmod /true # chmod /g" "$SCRIPTS" + sed -i "s/ chmod / true # chmod /g" "$SCRIPTS" fi # Get current shebang, if not available use another