Read the provider from the settings, not the migration PROVIDER_FILE

This commit is contained in:
Johannes Zellner
2020-01-13 15:35:44 +01:00
parent ffcba4646c
commit 001749564d
2 changed files with 1 additions and 4 deletions

View File

@@ -614,15 +614,13 @@ function initCache(callback) {
getAll(function (error, allSettings) {
if (error) return callback(error);
const provider = safe.fs.readFileSync(paths.PROVIDER_FILE, 'utf8');
gCache = {
apiServerOrigin: allSettings[exports.API_SERVER_ORIGIN_KEY],
webServerOrigin: allSettings[exports.WEB_SERVER_ORIGIN_KEY],
adminDomain: allSettings[exports.ADMIN_DOMAIN_KEY],
adminFqdn: allSettings[exports.ADMIN_FQDN_KEY],
isDemo: allSettings[exports.DEMO_KEY],
provider: provider ? provider.trim() : 'generic'
provider: allSettings[exports.SYSINFO_CONFIG_KEY].provider
};
callback();