mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 09:41:50 +02:00
Update and rename transmission_openvpn/rootfs/templates/restart_addon to transmission_openvpn/rootfs/usr/bin/restart_addon
This commit is contained in:
8
transmission_openvpn/rootfs/usr/bin/restart_addon
Normal file
8
transmission_openvpn/rootfs/usr/bin/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' &>/proc/1/fd/1
|
||||
sleep 15
|
||||
bashio::addon.restart &>/proc/1/fd/1
|
||||
fi
|
||||
Reference in New Issue
Block a user