mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +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
|
||||
|
||||
# Cleanup
|
||||
rm "$SCRIPTS"
|
||||
if bashio::supervisor.ping 2>/dev/null; then
|
||||
rm "$SCRIPTS"
|
||||
fi
|
||||
done
|
||||
|
||||
######################
|
||||
|
||||
Reference in New Issue
Block a user