Skip to content

Commit 4111174

Browse files
committed
Add systemd timer and service for updates
See: https://progress.opensuse.org/issues/166433
1 parent c5f0634 commit 4111174

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)