summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-02 22:19:50 +0200
committerGitHub <noreply@github.com>2022-09-02 22:19:50 +0200
commit16e696c9e864b7a2a860b8f0147aa54c681e7cb8 (patch)
tree848cf9c8273aca5fb434538778505b75a27be301 /lib/private/Repair
parent6132b6a4aec0cad2a92478ea913d6b8c6ce43835 (diff)
parent771431c8796a58f351f927fc1f3cf1f9e794aac6 (diff)
downloadnextcloud-server-16e696c9e864b7a2a860b8f0147aa54c681e7cb8.tar.gz
nextcloud-server-16e696c9e864b7a2a860b8f0147aa54c681e7cb8.zip
Merge pull request #33692 from nextcloud/update-dir
Document and use the new updateDirectory if set
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/MoveUpdaterStepFile.php4
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');