Skip to content

Use bkt to cache the output of apt-get update and apt-get -s dist-upgrade#10

Open
shurane wants to merge 2 commits intoar51an:mainfrom
shurane:use-bkt
Open

Use bkt to cache the output of apt-get update and apt-get -s dist-upgrade#10
shurane wants to merge 2 commits intoar51an:mainfrom
shurane:use-bkt

Conversation

@shurane
Copy link

@shurane shurane commented Jun 4, 2024

I was thinking of a way to simplify the update-motd-static.d directory, and I think this is a good way to approach it. It requires use of https://github.com/dimo414/bkt, but it simplifies needing to generate a new motd script file. bkt can cache the output of a command for a duration with --ttl, and you can also force update the cache with --force. This way, it should never hang when the user is logging in to see the updates available on the raspberry pi (or other device).

I also saw an opportunity to simplify the bash script a bit,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant