We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac7bf1 commit e9a041dCopy full SHA for e9a041d
repo-refresh/repo-refresh.service
@@ -0,0 +1,7 @@
1
+[Unit]
2
+Description=Check for package update
3
+ConditionACPower=true
4
+
5
+[Service]
6
+Type=oneshot
7
+ExecStart=/usr/libexec/repo-refresh.sh
repo-refresh/repo-refresh.sh
+#!/bin/bash
+if command -v oma > /dev/null; then
+ oma refresh --no-progress
+else
+ apt update
+fi
repo-refresh/repo-refresh.timer
@@ -0,0 +1,11 @@
+Description=Check for package updates
+[Timer]
+OnCalendar=*-*-* 6,18:00
+RandomizedDelaySec=12h
+AccuracySec=1h
8
+Persistent=true
9
10
+[Install]
11
+WantedBy=timers.target
0 commit comments