diff --git a/Common/config/default.json b/Common/config/default.json index d55b9bd0..cfc71667 100644 --- a/Common/config/default.json +++ b/Common/config/default.json @@ -216,7 +216,8 @@ }, "license" : { "license_file": "", - "warning_limit_percents": "70" + "warning_limit_percents": 70, + "packageType": 0 }, "FileConverter": { "converter": { diff --git a/Common/config/development-mac.json b/Common/config/development-mac.json index a262ef84..c5bb20e3 100644 --- a/Common/config/development-mac.json +++ b/Common/config/development-mac.json @@ -45,7 +45,8 @@ }, "license": { "license_file": "./../../license.lic", - "warning_limit_percents": "70" + "warning_limit_percents": 70, + "packageType": 0 }, "FileConverter": { "converter": { diff --git a/Common/config/development-windows.json b/Common/config/development-windows.json index 54ed4005..852905ed 100644 --- a/Common/config/development-windows.json +++ b/Common/config/development-windows.json @@ -45,7 +45,8 @@ }, "license": { "license_file": "./../../license.lic", - "warning_limit_percents": "70" + "warning_limit_percents": 70, + "packageType": 0 }, "FileConverter": { "converter": { diff --git a/Common/config/production-linux.json b/Common/config/production-linux.json index 23c2d6db..0a13aa54 100644 --- a/Common/config/production-linux.json +++ b/Common/config/production-linux.json @@ -47,7 +47,8 @@ }, "license": { "license_file": "/var/www/onlyoffice/documentserver/../Data/license.lic", - "warning_limit_percents": "70" + "warning_limit_percents": 70, + "packageType": 0 }, "FileConverter": { "converter": { diff --git a/Common/config/production-windows.json b/Common/config/production-windows.json index c7b68cc4..2a7fbdd9 100644 --- a/Common/config/production-windows.json +++ b/Common/config/production-windows.json @@ -47,7 +47,8 @@ }, "license": { "license_file": "./../../license.lic", - "warning_limit_percents": "70" + "warning_limit_percents": 70, + "packageType": 0 }, "FileConverter": { "converter": { diff --git a/Common/sources/license.js b/Common/sources/license.js index 2d5b77f1..784bed72 100644 --- a/Common/sources/license.js +++ b/Common/sources/license.js @@ -44,7 +44,7 @@ const redisClient = pubsubRedis.getClientRedis(); const buildDate = '6/29/2016'; const oBuildDate = new Date(buildDate); -const oPackageType = constants.PACKAGE_TYPE_OS; +const oPackageType = configL.get('packageType'); const cfgRedisPrefix = config.get('services.CoAuthoring.redis.prefix'); const redisKeyLicense = cfgRedisPrefix + ((constants.PACKAGE_TYPE_OS === oPackageType) ? constants.REDIS_KEY_LICENSE :