From 665a2b5a8c2269307fecc491cabb8f098736dfcc Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 6 Jul 2024 12:02:17 +0200 Subject: [PATCH] Define set +u for lsio https://github.com/alexbelgium/hassio-addons/issues/1466 --- .templates/ha_lsio.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.templates/ha_lsio.sh b/.templates/ha_lsio.sh index fa21dc950..5ee75a756 100755 --- a/.templates/ha_lsio.sh +++ b/.templates/ha_lsio.sh @@ -51,6 +51,11 @@ if [ -f /etc/s6-overlay/s6-rc.d/svc-cron/run ]; then sed -i "/exec \/usr\/sbin\/cron/c exec /usr/sbin/cron -f &>/proc/1/fd/1" /etc/s6-overlay/s6-rc.d/svc-cron/run fi +# variables not found +for file in $(grep -srl "/usr/bin" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do + sed -i "1a set +u" "$file" +done + # Replace lsiown if not found if [ ! -f /usr/bin/lsiown ]; then for file in $(grep -sril "lsiown" /etc); do