`--maxage 3600` ensures that `apt-get --quiet update` is only done if the previous run was at least 1 hour ago. This also adds messagingremotes/origin/key_value-onchange
parent
950f00d1a4
commit
179c5a2dfe
@ -0,0 +1,15 @@ |
||||
#!/bin/sh -e |
||||
|
||||
os="$("$__explorer/os")" |
||||
|
||||
case "$os" in |
||||
debian|ubuntu|devuan) |
||||
if [ -f "/var/cache/apt/pkgcache.bin" ]; then |
||||
echo $(($(date +"%s")-$(stat --format '%Y' /var/cache/apt/pkgcache.bin))) |
||||
else |
||||
echo 0 |
||||
fi |
||||
;; |
||||
*) ## not supported $os |
||||
;; |
||||
esac |
@ -1 +1,2 @@ |
||||
type |
||||
maxage |
||||
|
Loading…
Reference in new issue