aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-03-09 14:39:59 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-03-09 14:39:59 +0100
commit0e58c113a5e2740a900060123a1ca059a423bf7a (patch)
tree816b8d7e0f13cec571ffc045895fa64730416081 /lib/private/legacy/OC_Util.php
parente6161af6623d07a1f9d633c80c65a3ffa4e06a40 (diff)
downloadnextcloud-server-0e58c113a5e2740a900060123a1ca059a423bf7a.tar.gz
nextcloud-server-0e58c113a5e2740a900060123a1ca059a423bf7a.zip
Only check if secret is set if the nextcloud is installed
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r--lib/private/legacy/OC_Util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index d445afaa092..c4606383666 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -970,7 +970,7 @@ class OC_Util {
}
foreach (['secret', 'instanceid', 'passwordsalt'] as $requiredConfig) {
- if ($config->getValue($requiredConfig, '') === '' && !\OC::$CLI) {
+ if ($config->getValue($requiredConfig, '') === '' && !\OC::$CLI && $config->getValue('installed', false)) {
$errors[] = [
'error' => $l->t('The required \'' . $requiredConfig . '\' config variable is not configued in the config.php file.'),
'hint' => $l->t('Please ask your server administrator to check the Nextcloud configuration.')