Files
hassio-addons/transmission_openvpn/rootfs/usr/bin/restart_addon
2022-11-07 10:19:49 +01:00

8 lines
169 B
Plaintext

#!/usr/bin/env bashio
# shellcheck shell=bash
bashio::log.fatal 'Tunnel down, addon restarting in 15 seconds'
sleep 15
touch /data/addonrestarted
bashio::addon.restart