mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Only check if secret is set if the nextcloud is installed
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
e6161af662
commit
0e58c113a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue