diff --git a/.templates/ha_entrypoint_modif.sh b/.templates/ha_entrypoint_modif.sh index ea18f243a..3e8034944 100755 --- a/.templates/ha_entrypoint_modif.sh +++ b/.templates/ha_entrypoint_modif.sh @@ -5,6 +5,15 @@ set -e # Global modifications before entrypoint # ########################################## +# Ensure lf +########### + +for folders in /default /defaults /etc; do + if [ -d "$folders" ]; then + find "$folders" -type f -not -path '*/\.*' -exec grep -Il '.' {} \; | xargs -d '\n' -L 1 dos2unix -k + fi +done + # Corrects permissions for s6 v3 ################################