From 0e58c113a5e2740a900060123a1ca059a423bf7a Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 9 Mar 2022 14:39:59 +0100 Subject: Only check if secret is set if the nextcloud is installed Signed-off-by: Carl Schwan --- lib/private/legacy/OC_Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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.') -- cgit v1.2.3