summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r--lib/private/legacy/OC_Util.php12
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());