new
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
*
|
||||
* iobroker vis Adapter
|
||||
* yunkong2 vis Adapter
|
||||
*
|
||||
* (c) 2014-2017 bluefox, hobbyquaker
|
||||
*
|
||||
@@ -105,7 +105,7 @@ function writeFile(fileName, callback) {
|
||||
|
||||
function upload(callback) {
|
||||
adapter.log.info('Upload ' + adapter.name + ' anew, while changes detected...');
|
||||
var file = utils.controllerDir + '/iobroker.js';
|
||||
var file = utils.controllerDir + '/yunkong2.js';
|
||||
var child = require('child_process').spawn('node', [file, 'upload', adapter.name, 'widgets']);
|
||||
var count = 0;
|
||||
child.stdout.on('data', function (data) {
|
||||
@@ -299,14 +299,14 @@ function main() {
|
||||
// first of all check license
|
||||
if (!adapter.config.license || typeof adapter.config.license !== 'string') {
|
||||
indicateError(function () {
|
||||
adapter.log.error('No license found for vis. Please get one on https://iobroker.net !');
|
||||
adapter.log.error('No license found for vis. Please get one on https://yunkong2.net !');
|
||||
//adapter.stop();
|
||||
generatePages(true);
|
||||
});
|
||||
} else {
|
||||
// An object of options to indicate where to post to
|
||||
var postOptions = {
|
||||
host: 'iobroker.net',
|
||||
host: 'yunkong2.net',
|
||||
path: '/cert/',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user