initial commit of brew-update-user.{service,timer}

This commit is contained in:
Aminda Suomalainen 2025-07-22 22:29:17 +03:00
parent 3dedc39c8d
commit 61406c9c98
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description=Install linuxbrew updates
[Service]
Type=oneshot
ExecStartPre=/usr/local/bin/brew update
ExecStart=/usr/local/bin/brew upgrade

View File

@ -0,0 +1,15 @@
[Unit]
Description=Install homebrew updates regularly
[Timer]
#OnCalendar=*-*-* 19:00:00
# Executed every 4 hours
OnUnitActiveSec=4h
# Executed 5 minutes from boot
OnBootSec=300
# Delay execution by something between 0 seconds and 3 hours
RandomizedDelaySec=3h
Persistent=true
[Install]
WantedBy=timers.target