mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-23 13:06:28 +01:00
9 lines
210 B
Plaintext
9 lines
210 B
Plaintext
#!/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
|