mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Delete scripts only if within supervisor, to accept restarts
This commit is contained in:
@@ -46,7 +46,9 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm "$SCRIPTS"
|
if bashio::supervisor.ping 2>/dev/null; then
|
||||||
|
rm "$SCRIPTS"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
######################
|
######################
|
||||||
|
|||||||
Reference in New Issue
Block a user