1
0
mirror of https://github.com/tommytran732/Fedora-CoreOS-Ignition synced 2024-12-22 06:32:18 -05:00

Switch to using systemd timer for container update

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-04-05 14:21:39 -07:00
parent 4b109fa93b
commit c6a758d8a0
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
2 changed files with 17 additions and 0 deletions

View File

@ -251,6 +251,11 @@
"enabled": false,
"name": "docker-compose-updater.service"
},
{
"contents": "[Unit]\nDescription=Run docker-compose-updater once a week, 15 minutes after OS update\n\n[Timer]\nOnCalendar=Fri 0:15\nPersistent=true\n\n[Install]\nWantedBy=timers.target\n",
"enabled": false,
"name": "docker-compose-updater.timer"
},
{
"enabled": true,
"name": "docker.service"

View File

@ -140,6 +140,18 @@ systemd:
[Install]
WantedBy=multi-user.target
- name: docker-compose-updater.timer
enabled: false
contents: |
[Unit]
Description=Run docker-compose-updater once a week, 15 minutes after OS update
[Timer]
OnCalendar=Fri 0:15
Persistent=true
[Install]
WantedBy=timers.target
- name: docker.service
enabled: true
- name: fstrim.timer