summaryrefslogtreecommitdiffstats
path: root/bin/housekeeping.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/housekeeping.sh')
-rwxr-xr-xbin/housekeeping.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh
index cc38e49d..5bce9dfa 100755
--- a/bin/housekeeping.sh
+++ b/bin/housekeeping.sh
@@ -63,7 +63,8 @@ general_housekeeping() {
uptime
echo
- df -h
+ # ignore unreadable /media fuse mountpoints from guestmount
+ df -h 2>/dev/null || true
echo
for DIR in /var/cache/apt/archives/ /var/spool/squid/ /var/cache/pbuilder/build/ /var/lib/jenkins/jobs/ ; do
@@ -77,7 +78,7 @@ general_housekeeping() {
echo
vnstat
- df |grep tmpfs > /dev/null || ( echo ; echo "Warning: no tmpfs mounts in use. Please investigate the host system." ; exit 1 )
+ (df 2>/dev/null || true ) | grep tmpfs > /dev/null || ( echo ; echo "Warning: no tmpfs mounts in use. Please investigate the host system." ; exit 1 )
}
#