nextcloud: bump default version from 30 to 31

This commit is contained in:
ibizaman 2025-10-23 02:12:29 +02:00 committed by Pierre Penninckx
parent 8c3cef95a4
commit 7ebe421fa0
3 changed files with 15 additions and 7 deletions

View file

@ -16,6 +16,12 @@ Template:
# Upcoming Release
# v0.6.0
## Breaking Changes
- Removed Nextcloud 30, update to Nextcloud 31 then after to 32.
# v0.5.1
## New Features

View file

@ -71,8 +71,8 @@ in
version = lib.mkOption {
description = "Nextcloud version to choose from.";
type = lib.types.enum [ 30 31 ];
default = 30;
type = lib.types.enum [ 31 32 ];
default = 31;
};
dataDir = lib.mkOption {

View file

@ -1,21 +1,23 @@
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 8fec24996891f..57b2980f1a43f 100644
index 260f9218a88..26e5a4172f7 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -101,9 +101,13 @@ public function __construct($arguments) {
@@ -66,9 +66,12 @@ class Local extends \OC\Files\Storage\Common {
$this->unlinkOnTruncate = $this->config->getSystemValueBool('localstorage.unlink_on_truncate', false);
if (isset($arguments['isExternal']) && $arguments['isExternal'] && !$this->stat('')) {
if (isset($parameters['isExternal']) && $parameters['isExternal'] && !$this->stat('')) {
- // data dir not accessible or available, can happen when using an external storage of type Local
- // on an unmounted system mount point
- throw new StorageNotAvailableException('Local storage path does not exist "' . $this->getSourcePath('') . '"');
+
+ if (!$this->mkdir('')) {
+ // data dir not accessible or available, can happen when using an external storage of type Local
+ // on an unmounted system mount point
+ throw new StorageNotAvailableException('Local storage path does not exist and could not create it "' . $this->getSourcePath('') . '"');
+ }
+ \OC::$server->get(LoggerInterface::class)->warning('created local storage path ' . $this->getSourcePath(''), ['app' => 'core']);
+ Server::get(LoggerInterface::class)->warning('created local storage path ' . $this->getSourcePath(''), ['app' => 'core']);
}
}
--
2.50.1