Bläddra i källkod

Refined output for additional checks

Michael Honkoop 2 månader sedan
förälder
incheckning
83cae4299c
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      localchecks/nextcloud-updates.sh

+ 5 - 5
localchecks/nextcloud-updates.sh

@@ -22,7 +22,6 @@ BASEPATH="/var/www/html"
 APACHEUSER="apache"
 
 # check if jq package is present on the system
-
 /usr/bin/which jq >/dev/null 2>&1
 if [ $? -ne 0 ]; then
     echo "2 \"NextCloud\" - NextCloud localcheck requires jq package to be installed"
@@ -32,17 +31,18 @@ fi
 
 # check if configured apache user exists
 if ! id -u "$APACHEUSER" >/dev/null 2>&1; then
-    echo "2 \"NextCloud\" - NextCloud localcheck webserver user does not exist."
-    echo "2 \"NextCloud Apps\" - NextCloud localcheck webserver user does not exist."
+    echo "2 \"NextCloud\" - NextCloud localcheck webserver user does not exist, check configuration!"
+    echo "2 \"NextCloud Apps\" - NextCloud localcheck webserver user does not exist, check configuration!"
     exit;
 fi
 
 # check if configured basepath exists
 if [ ! -d "$BASEPATH" ]; then
-    echo "2 \"NextCloud\" - NextCloud localcheck could not find configured basepath"
-    echo "2 \"NextCloud Apps\" - NextCloud localcheck could not find configured basepath"
+    echo "2 \"NextCloud\" - NextCloud localcheck could not find configured basepath, check configuration!"
+    echo "2 \"NextCloud Apps\" - NextCloud localcheck could not find configured basepath, check configuration!"
     exit;
 fi
+
 # Get current installed Nextcloud version-information
 # in v29.x.x version gives more detail, which is not given by the check on installed version, so switched to versionstring instead.