mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -120,10 +120,8 @@ if bashio::config.true 'auto_restart'; then
|
|||||||
sed -i "1a touch /vpn_stopped" /etc/openvpn/tunnelDown.sh
|
sed -i "1a touch /vpn_stopped" /etc/openvpn/tunnelDown.sh
|
||||||
|
|
||||||
# Sets cron // do not delete this message
|
# Sets cron // do not delete this message
|
||||||
crontab /etc/crontab
|
|
||||||
chmod 744 /templates/restart_addon
|
chmod 744 /templates/restart_addon
|
||||||
(crontab -l; echo "*/15 * * * * root /templates/restart_addon")|awk '!x[$0]++'|crontab -
|
cp /templates/restart_addon /etc/cron.hourly
|
||||||
crontab /etc/crontab
|
|
||||||
|
|
||||||
# Starts cron
|
# Starts cron
|
||||||
service cron start
|
service cron start
|
||||||
|
|||||||
Reference in New Issue
Block a user