diff --git a/systemd/openqa-trigger-from-obs-update.service b/systemd/openqa-trigger-from-obs-update.service new file mode 100644 index 0000000..2328677 --- /dev/null +++ b/systemd/openqa-trigger-from-obs-update.service @@ -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 diff --git a/systemd/openqa-trigger-from-obs-update.timer b/systemd/openqa-trigger-from-obs-update.timer new file mode 100644 index 0000000..271b8a3 --- /dev/null +++ b/systemd/openqa-trigger-from-obs-update.timer @@ -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