mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Cron job restart
https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
8
transmission_openvpn/rootfs/templates/restart_addon
Normal file
8
transmission_openvpn/rootfs/templates/restart_addon
Normal 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
|
||||||
Reference in New Issue
Block a user