Update restart_addon

This commit is contained in:
Alexandre
2022-11-06 11:19:33 +01:00
committed by GitHub
parent 0d13470ef7
commit d8f1e646bf

View File

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