Update 99-run.sh

This commit is contained in:
Alexandre
2022-11-06 21:36:22 +01:00
committed by GitHub
parent 3e4a8af83c
commit c3b1636483

View File

@@ -126,7 +126,7 @@ if bashio::config.true 'auto_restart'; then
bashio::log.info "Auto restarting addon if openvpn down"
(set -o posix; export -p) > /env.sh
chmod +x /usr/bin/restart_addon
sed -i "1a /./usr/bin/restart_addon" /etc/openvpn/tunnelDown.sh
sed -i "1a . /env.sh; /usr/bin/restart_addon >/proc/1/fd/1 2>/proc/1/fd/2" /etc/openvpn/tunnelDown.sh
fi