From ee6ae12f5e330614faf1f5bcf78b11255b9ed8fb Mon Sep 17 00:00:00 2001
From: Markus Fleschutz <markus@fleschutz.de>
Date: Fri, 3 Dec 2021 10:13:59 +0100
Subject: [PATCH] Update check-health.ps1

---
 Scripts/check-health.ps1 | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1
index 13b196d1..d76fd036 100755
--- a/Scripts/check-health.ps1
+++ b/Scripts/check-health.ps1
@@ -20,22 +20,12 @@
 & "$PSScriptRoot/check-uptime.ps1"
 & "$PSScriptRoot/check-operating-system.ps1"
 & "$PSScriptRoot/check-swap-space.ps1"
-if ($lastExitCode -ne "0") { $Healthy = 0 }
-
-if ($IsLinux) {
-	& "$PSScriptRoot/check-drive-space.ps1" /
-	if ($lastExitCode -ne "0") { $Healthy = 0 }
-} else {
-	& "$PSScriptRoot/check-drive-space.ps1" C
-	if ($lastExitCode -ne "0") { $Healthy = 0 }
-}
-
+& "$PSScriptRoot/check-drives.ps1"
 & "$PSScriptRoot/check-cpu.ps1"
 & "$PSScriptRoot/check-dns.ps1"
 & "$PSScriptRoot/check-ping.ps1"
 & "$PSScriptRoot/check-vpn.ps1"
 if ($IsLinux) {
 	& "$PSScriptRoot/check-smart-devices.ps1" 
-	if ($lastExitCode -ne "0") { $Healthy = 0 }
 }
 exit 0 # success