Skip to content

Commit 7b008f1

Browse files
authored
Merge pull request #268 from kalikiana/systemd_timer_service
Add systemd timer and service for updates
2 parents c5f0634 + 4111174 commit 7b008f1

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=Update openqa-trigger-from-obs git repository
3+
After=network-online.target
4+
5+
[Service]
6+
Type=oneshot
7+
ExecStart=/usr/bin/git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master
8+
User=geekotest
9+
10+
[Install]
11+
WantedBy=default.target
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Unit]
2+
Description=Update git repository of openqa-trigger-from-obs
3+
4+
[Timer]
5+
OnCalendar=*:0/3
6+
Unit=openqa-trigger-from-obs-update.service
7+
8+
[Install]
9+
WantedBy=default.target

0 commit comments

Comments
 (0)