diff options
author | Git'Fellow <carlos@reendex.com> | 2022-08-25 12:32:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 12:32:54 +0200 |
commit | c1699d9f5d2dc9abb2d8bd845b11e12b2ee4c61a (patch) | |
tree | 5d93183d10ff6ad75fb3ae1df676f2258bc0e13c /lib/private/Repair | |
parent | 3a097020b057e4ca9f7eeb4325c31444aa0f4933 (diff) | |
download | nextcloud-server-c1699d9f5d2dc9abb2d8bd845b11e12b2ee4c61a.tar.gz nextcloud-server-c1699d9f5d2dc9abb2d8bd845b11e12b2ee4c61a.zip |
Introduce $updateDir to move updates outside $dataDir
To be merged after https://github.com/nextcloud/updater/pull/420
Signed-off-by: Git'Fellow <carlos@reendex.com>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r-- | lib/private/Repair/MoveUpdaterStepFile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Repair/MoveUpdaterStepFile.php b/lib/private/Repair/MoveUpdaterStepFile.php index bc7430d7a7f..020510804d7 100644 --- a/lib/private/Repair/MoveUpdaterStepFile.php +++ b/lib/private/Repair/MoveUpdaterStepFile.php @@ -43,14 +43,14 @@ class MoveUpdaterStepFile implements IRepairStep { } public function run(IOutput $output) { - $dataDir = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); + $updateDir = $this->config->getSystemValue('updatedirectory') ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); $instanceId = $this->config->getSystemValue('instanceid', null); if (!is_string($instanceId) || empty($instanceId)) { return; } - $updaterFolderPath = $dataDir . '/updater-' . $instanceId; + $updaterFolderPath = $updateDir . '/updater-' . $instanceId; $stepFile = $updaterFolderPath . '/.step'; if (file_exists($stepFile)) { $output->info('.step file exists'); |