浏览代码

Added basepath check

Michael Honkoop 2 月之前
父节点
当前提交
9fdc424cb4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      localchecks/nextcloud-updates.sh

+ 6 - 0
localchecks/nextcloud-updates.sh

@@ -28,6 +28,12 @@ if [ $? -ne 0 ]; then
     exit;
     exit;
 fi
 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
 # 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.
 # in v29.x.x version gives more detail, which is not given by the check on installed version, so switched to versionstring instead.