Skip to content

Commit

Permalink
Merge pull request #268 from kalikiana/systemd_timer_service
Browse files Browse the repository at this point in the history
Add systemd timer and service for updates
  • Loading branch information
kalikiana authored Sep 12, 2024
2 parents c5f0634 + 4111174 commit 7b008f1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions systemd/openqa-trigger-from-obs-update.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Update openqa-trigger-from-obs git repository
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master
User=geekotest

[Install]
WantedBy=default.target
9 changes: 9 additions & 0 deletions systemd/openqa-trigger-from-obs-update.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Update git repository of openqa-trigger-from-obs

[Timer]
OnCalendar=*:0/3
Unit=openqa-trigger-from-obs-update.service

[Install]
WantedBy=default.target

0 comments on commit 7b008f1

Please sign in to comment.