diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index edee23995f1..8debe7a8968 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -736,6 +736,15 @@ class OC_Util { ]; } + foreach (['secret', 'instanceid', 'passwordsalt'] as $requiredConfig) { + 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.') + ]; + } + } + $errors = array_merge($errors, self::checkDatabaseVersion()); // Cache the result of this function |