mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update restart_addon
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/env bashio
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.fatal 'Tunnel down, addon restarting in 15 seconds'
|
||||
|
||||
sleep 15
|
||||
|
||||
# force container environment
|
||||
for i in $(/usr/bin/env); do
|
||||
export "$i" 2>/dev/null || true
|
||||
done
|
||||
#for i in $(/usr/bin/env); do
|
||||
#export "$i" 2>/dev/null || true
|
||||
#done
|
||||
|
||||
bashio::addon.restart
|
||||
|
||||
Reference in New Issue
Block a user