mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Auto addon restart https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
@@ -108,6 +108,14 @@ else
|
||||
|
||||
fi
|
||||
|
||||
################
|
||||
# Auto restart #
|
||||
################
|
||||
|
||||
sed -i "s|#!/bin/bash|#!/usr/bin/bashio|g" /./etc/openvpn/tunnelDown.sh
|
||||
sed -i "1a bashio::log.warning 'Tunnel down, addon restarting" /./etc/openvpn/tunnelDown.sh
|
||||
sed -i "1a bashio::addon.restart" /./etc/openvpn/tunnelDown.sh
|
||||
|
||||
#######################
|
||||
# Run haugene scripts #
|
||||
#######################
|
||||
|
||||
Reference in New Issue
Block a user