Skip to content

Commit

Permalink
- added dataDirectory output to occ only
Browse files Browse the repository at this point in the history
  • Loading branch information
d7oc committed Jan 31, 2023
1 parent 618c8ef commit 58efbc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/legacy/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,11 +1032,14 @@ public static function checkDataDirectoryValidity($dataDirectory) {
}
if (!\file_exists($dataDirectory . '/.ocdata')) {
$errors[] = [
'error' => $l->t('Your Data directory is invalid'),
'error' => $l->t('Your Data directory is invalid'),
'hint' => $l->t('Please check that the data directory contains a file' .
' ".ocdata" in its root.')
];
}
if (\OC::$CLI) {
print "Value of Data directory was: '$dataDirectory'" . PHP_EOL;
}
return $errors;
}

Expand Down

0 comments on commit 58efbc4

Please sign in to comment.