Cron job restart

https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
Alexandre
2022-11-03 09:45:34 +01:00
committed by GitHub
parent 1e2628eaf1
commit 5e748581aa

View File

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