diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-03-09 13:36:06 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-03-09 13:36:06 +0100 |
commit | e6161af6623d07a1f9d633c80c65a3ffa4e06a40 (patch) | |
tree | 7478b00fe3b5542ea92e15f39c58b3bf7ed3db45 /lib/private | |
parent | 7496bf3461a382c9a93d876b894448b7c4cd28cb (diff) | |
download | nextcloud-server-e6161af6623d07a1f9d633c80c65a3ffa4e06a40.tar.gz nextcloud-server-e6161af6623d07a1f9d633c80c65a3ffa4e06a40.zip |
Also check for instanceid and passwordhash
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 5441d3a2864..d445afaa092 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -969,11 +969,13 @@ class OC_Util { ]; } - if ($config->getValue('secret', '') === '' && !\OC::$CLI) { - $errors[] = [ - 'error' => $l->t('The required \'secret\' config variable is not configued in the config.php file.'), - 'hint' => $l->t('Please ask your server administrator to check the Nextcloud configuration.') - ]; + foreach (['secret', 'instanceid', 'passwordsalt'] as $requiredConfig) { + if ($config->getValue($requiredConfig, '') === '' && !\OC::$CLI) { + $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.') + ]; + } } $errors = array_merge($errors, self::checkDatabaseVersion()); |