Create /vpn_stopped

https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
Alexandre
2022-11-03 10:10:28 +01:00
committed by GitHub
parent 52b03b3d37
commit bdb0394050

View File

@@ -115,7 +115,10 @@ fi
if bashio::config.has_value 'auto_restart'; then
bashio::log.info "Auto restarting addon if openvpn down for more than 1h"
# Create file if vpn down
sed -i "1a touch /vpn_stopped" /etc/openvpn/tunnelDown.sh
# Sets cron // do not delete this message
cp /templates/restart_addon /etc/cron.hourly
chmod 777 /etc/cron.hourly/cronupdate