diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-04-26 17:28:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 17:28:51 +0200 |
commit | 036f871d01ed6903467861b0fa2b18d5f5ae4a0c (patch) | |
tree | f1472f74f483889b0321d779fb9875dd82ce46db /lib | |
parent | dffbddcca6fa0221b8f2ac138732cf01154a5187 (diff) | |
parent | 0e58c113a5e2740a900060123a1ca059a423bf7a (diff) | |
download | nextcloud-server-036f871d01ed6903467861b0fa2b18d5f5ae4a0c.tar.gz nextcloud-server-036f871d01ed6903467861b0fa2b18d5f5ae4a0c.zip |
Merge pull request #31492 from nextcloud/fix/check-secret-configured
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 |