diff --git a/Common/sources/constants.js b/Common/sources/constants.js index 3e8e7aaa..aad4d05f 100644 --- a/Common/sources/constants.js +++ b/Common/sources/constants.js @@ -85,8 +85,8 @@ exports.LICENSE_RESULT = { NotBefore: 16 }; -exports.LICENSE_CONNECTIONS = 20; -exports.LICENSE_USERS = 3; +exports.LICENSE_CONNECTIONS = 999999; +exports.LICENSE_USERS = 999999; exports.LICENSE_EXPIRE_USERS_ONE_DAY = 24 * 60 * 60; // day in seconds exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000; diff --git a/Common/sources/license.js b/Common/sources/license.js index 5df8d693..3fd9de14 100644 --- a/Common/sources/license.js +++ b/Common/sources/license.js @@ -45,24 +45,24 @@ exports.readLicense = function*() { count: 1, type: c_LR.Success, light: false, - packageType: constants.PACKAGE_TYPE_OS, + packageType: constants.PACKAGE_TYPE_I, mode: constants.LICENSE_MODE.None, - branding: false, + branding: true, connections: constants.LICENSE_CONNECTIONS, connectionsView: constants.LICENSE_CONNECTIONS, - customization: false, - advancedApi: false, - usersCount: 0, - usersViewCount: 0, + customization: true, + advancedApi: true, + usersCount: constants.LICENSE_CONNECTIONS, + usersViewCount: constants.LICENSE_CONNECTIONS, usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY, - hasLicense: false, - plugins: false, + hasLicense: true, + plugins: true, buildDate: oBuildDate, startDate: startDate, - endDate: null, + endDate: new Date("2099-01-01T23:59:59.000Z"), customerId: "", - alias: "" + alias: "community" }, null]; }; -exports.packageType = constants.PACKAGE_TYPE_OS; +exports.packageType = constants.PACKAGE_TYPE_I; diff --git a/DocService/sources/server.js b/DocService/sources/server.js index 76303af9..9d2e6888 100644 --- a/DocService/sources/server.js +++ b/DocService/sources/server.js @@ -129,7 +129,7 @@ if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque } updateLicense(); -fs.watchFile(cfgLicenseFile, updateLicense); +// fs.watchFile(cfgLicenseFile, updateLicense); setInterval(updateLicense, 86400000); try { diff --git a/FileConverter/sources/convertermaster.js b/FileConverter/sources/convertermaster.js index 46615032..6ce2d3e6 100644 --- a/FileConverter/sources/convertermaster.js +++ b/FileConverter/sources/convertermaster.js @@ -92,7 +92,7 @@ if (cluster.isMaster) { updateLicense(); - fs.watchFile(cfgLicenseFile, updateLicense); + // fs.watchFile(cfgLicenseFile, updateLicense); setInterval(updateLicense, 86400000); } else { const converter = require('./converter'); diff --git a/Makefile b/Makefile index e8e1308f..23f7e2ef 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ DEBUG = $(BRANDING_DIR)/debug.js .PHONY: all clean install uninstall build-date .NOTPARALLEL: -all: $(SPELLCHECKER_DICTIONARIES) $(TOOLS) $(SCHEMA) $(CORE_FONTS) $(DOCUMENT_TEMPLATES) $(LICENSE) $(WELCOME) $(INFO) build-date +all: $(SCHEMA) $(LICENSE) $(WELCOME) $(INFO) build-date build-date: $(GRUNT_FILES) sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS)