Update restart_addon

This commit is contained in:
Alexandre
2022-11-03 18:46:04 +01:00
committed by GitHub
parent 45eb5ec97f
commit c7a2a31b48

View File

@@ -1,10 +1,8 @@
#!/usr/bin/env bashio
# shellcheck shell=bash
(
if [ -f /vpn_stopped ]; then
bashio::log.fatal 'Tunnel down, addon restarting in 15 seconds'
bashio::log.fatal 'Tunnel down, addon restarting in 15 seconds' &>/proc/1/fd/1
sleep 15
bashio::addon.restart
bashio::addon.restart &>/proc/1/fd/1
fi
) &>/proc/1/fd/1