Ver código fonte

Added basepath check

Michael Honkoop 2 meses atrás
pai
commit
9fdc424cb4
1 arquivos alterados com 6 adições e 0 exclusões
  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.