deb-update.bash: set snap refresh.retain to 2

This commit is contained in:
Aminda Suomalainen 2024-03-19 13:23:30 +02:00
parent 886a0c0078
commit 29a72a17ca
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -78,6 +78,9 @@ if hash flatpak 2>/dev/null; then
fi
if hash snap 2>/dev/null; then
# I don't want my systems full of old snaps
# > retain must be a number between 2 and 20, not "1"
snap set system refresh.retain=2
# Snap packages auto-update anyway though, but I like checking them while
# doing everything else too
snap refresh