mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -121,8 +121,9 @@ if bashio::config.true 'auto_restart'; then
|
||||
|
||||
# Sets cron // do not delete this message
|
||||
crontab /etc/crontab
|
||||
chmod 744 /templates/restart_addon
|
||||
(crontab -l; echo "*/15 * * * * root /templates/restart_addon")|awk '!x[$0]++'|crontab -
|
||||
chmod +x /templates/restart_addon
|
||||
crontab /etc/crontab
|
||||
|
||||
# Starts cron
|
||||
service cron start
|
||||
|
||||
Reference in New Issue
Block a user