mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-14 19:41:31 +02:00
@@ -112,8 +112,17 @@ fi
|
|||||||
# Auto restart #
|
# Auto restart #
|
||||||
################
|
################
|
||||||
|
|
||||||
chmod +x /usr/bin/restart_addon
|
if bashio::config.has_value 'auto_restart'; then
|
||||||
sed -i "1a /./usr/bin/restart_addon" /etc/openvpn/tunnelDown.sh
|
|
||||||
|
bashio::log.info "Auto restarting addon if openvpn down for more than 1h"
|
||||||
|
|
||||||
|
# Sets cron // do not delete this message
|
||||||
|
cp /templates/restart_addon /etc/cron.hourly
|
||||||
|
chmod 777 /etc/cron.hourly/cronupdate
|
||||||
|
|
||||||
|
# Starts cron
|
||||||
|
service cron start
|
||||||
|
fi
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Run haugene scripts #
|
# Run haugene scripts #
|
||||||
|
|||||||
Reference in New Issue
Block a user