mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Save streamdata on stop
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/bashio
|
||||
|
||||
if [ -d /tmp/StreamData ]; then
|
||||
bashio::log.fatal "Container stopping, saving temporary files"
|
||||
|
||||
# Stop the services in parallel
|
||||
@@ -12,3 +14,4 @@ if [ "$(ls -A /tmp/StreamData)" ]; then
|
||||
fi
|
||||
|
||||
bashio::log.fatal "... files safe, allowing container to stop"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user