|
@@ -40,9 +40,9 @@ fi
|
|
|
|
|
|
# store version information from DirectAdmin packages
|
|
|
DirectAdmin_Versions_Update=$($DirAdmin_Path/build versions)
|
|
|
-#Define updates Array
|
|
|
+# Define updates Array
|
|
|
updates=()
|
|
|
-# iterate over the collected data to find possible updates
|
|
|
+# Iterate over the collected data to find possible updates
|
|
|
while read -r line; do
|
|
|
if [[ $line =~ ^Latest\ version\ of\ (.+):\ (.+)$ ]]; then
|
|
|
component="${BASH_REMATCH[1]}"
|
|
@@ -57,6 +57,7 @@ while read -r line; do
|
|
|
fi
|
|
|
done <<< "$DirectAdmin_Versions_Update"
|
|
|
|
|
|
+# Report findings back to CheckMK
|
|
|
if [[ ${#updates[@]} -eq 0 ]]; then
|
|
|
echo "0 \"DirectAdmin\" - All DirectAdmin Versions are up to date"
|
|
|
else
|