Skip to content

Commit

Permalink
fix: add timer update image
Browse files Browse the repository at this point in the history
  • Loading branch information
innovisus committed Feb 2, 2025
1 parent 8376d65 commit 72f5078
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/configuration/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ systemctl enable chrony
systemctl enable docker.socket
systemctl enable podman.socket
systemctl enable sync-users.service
#systemctl enable atomic-groups.service
systemctl enable brew-setup.service
systemctl enable update-image-task.timer
systemctl enable brew-upgrade.timer
systemctl enable brew-update.timer
systemctl --global enable flatpak-install.service
Expand Down
4 changes: 4 additions & 0 deletions src/configuration/user_exec/libexec/update-system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Обновление системы
atomic-actions apt upgrade
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
Description=System update

[Service]
Type=oneshot
ExecStart=/usr/libexec/update-system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=System update timer

[Timer]
OnCalendar=weekly
Persistent=true

[Install]
WantedBy=timers.target

0 comments on commit 72f5078

Please sign in to comment.