Kaynağa Gözat

Added basepath check

Michael Honkoop 2 ay önce
ebeveyn
işleme
9fdc424cb4
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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.