trim the license

This commit is contained in:
Girish Ramakrishnan
2019-05-07 16:48:40 -07:00
parent 1ebc077721
commit 876cef5970
2 changed files with 2 additions and 2 deletions

View File

@@ -338,7 +338,7 @@ function autoRegister(callback) {
const license = safe.fs.readFileSync(paths.LICENSE_FILE, 'utf8');
if (!license) return callback(new ProvisionError(ProvisionError.EXTERNAL_ERROR, 'Cannot read license'));
appstore.registerWithLicense(license, function (error) {
appstore.registerWithLicense(license.trim(), function (error) {
if (error && error.reason !== AppstoreError.ALREADY_REGISTERED) {
debug(error);
debug('Failed to auto-register Cloudron with license. Please contact support@cloudron.io');