From: Ian Kelling Date: Thu, 2 Mar 2023 01:56:31 +0000 (-0500) Subject: minor improvements X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=e7c18f24afd8fdad2ba56030a3b4f83ab8926391;p=distro-setup minor improvements --- diff --git a/check-stale-alerts b/check-stale-alerts index 1ecb58b..88fa096 100755 --- a/check-stale-alerts +++ b/check-stale-alerts @@ -21,3 +21,8 @@ for h in {li,bk,je}.b8.nz; do printf "%s\n" "$out" fi done + +# for .prom.$PID files, they will naturally exist when +# scripts like system-status get killed on reboot. +# Just clean them up here. +find /var/lib/prometheus/node-exporter -name '*[0-9]' -type f -mtime 9 -delete diff --git a/mount-latest-subvol b/mount-latest-subvol index 4c1ee2f..099c38f 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -472,6 +472,9 @@ for dir in /mnt/r7/amy/{root/root,boot/boot}_ubuntubionic /mnt/{root2/root,boot2 rm -f /nocow/btrfs-stale/$vol done +if (( $ret )); then + echo "$0: exit status $ret. see error above" +fi exit $ret