mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Auto addon restart https://github.com/alexbelgium/hassio-addons/issues/435
This commit is contained in:
@@ -108,6 +108,14 @@ else
|
|||||||
|
|
||||||
fi
|
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 #
|
# Run haugene scripts #
|
||||||
#######################
|
#######################
|
||||||
|
|||||||
Reference in New Issue
Block a user