mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-14 10:00:31 +02:00
Create /vpn_stopped
https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
@@ -116,6 +116,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user