From: Martin Pitt Date: Tue, 23 Jul 2019 16:45:29 +0000 (+0200) Subject: Add system-maintenance X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=7b58ff326b63da139184217b796353250f110092;p=bin.git Add system-maintenance Script to run weekly for rebuilding the OSTree and trimming the SSD. --- diff --git a/system-maintenance b/system-maintenance new file mode 100755 index 0000000..96af4b3 --- /dev/null +++ b/system-maintenance @@ -0,0 +1,12 @@ +#!/bin/sh +set -eux + +rpm-ostree cleanup --rollback +rpm-ostree cleanup --repomd +rpm-ostree cleanup --base + +rm -rf /srv/ostree/repo/ +(cd ~martin/src/workstation-ostree-config/; ./compose.sh) +rpm-ostree upgrade + +fstrim -av