mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2026-01-31 17:38:25 +00:00
17 lines
375 B
Plaintext
17 lines
375 B
Plaintext
|
|
[Unit]
|
||
|
|
Description=Weekly APT maintenance (Home Assistant webhook)
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
ExecStart=/usr/local/sbin/apt_weekly.sh https://HOMEASSISTANT_HOST:8123/api/webhook/REPLACE_WITH_WEBHOOK_ID
|
||
|
|
User=root
|
||
|
|
Group=root
|
||
|
|
Nice=10
|
||
|
|
IOSchedulingClass=best-effort
|
||
|
|
IOSchedulingPriority=7
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|