mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-20 14:29:14 +02:00
Define set +u for lsio
https://github.com/alexbelgium/hassio-addons/issues/1466
This commit is contained in:
@@ -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
|
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
|
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
|
# Replace lsiown if not found
|
||||||
if [ ! -f /usr/bin/lsiown ]; then
|
if [ ! -f /usr/bin/lsiown ]; then
|
||||||
for file in $(grep -sril "lsiown" /etc); do
|
for file in $(grep -sril "lsiown" /etc); do
|
||||||
|
|||||||
Reference in New Issue
Block a user