Browse Source

Added basepath check

Michael Honkoop 2 months ago
parent
commit
9fdc424cb4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      localchecks/nextcloud-updates.sh

+ 6 - 0
localchecks/nextcloud-updates.sh

@@ -28,6 +28,12 @@ if [ $? -ne 0 ]; then
     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"
+  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.