mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-02 12:03:18 +02:00
11 lines
244 B
Plaintext
11 lines
244 B
Plaintext
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
|
|
/etc/bashioenv >> /etc/bashioenv
|
|
|
|
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
|