aliyun-dns-updater
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,6 +6,4 @@ 'use strict'; | ||
const path = require('path'); | ||
const cron = require('cron'); | ||
const Updater = require('./updater'); | ||
const program = require('commander'); | ||
var CronJob = require('cron').CronJob; | ||
@@ -37,4 +35,2 @@ program | ||
new CronJob('0 */2 * * * *', function() { | ||
job(); | ||
}, null, true); | ||
job(); |
{ | ||
"name": "aliyun-dns-updater", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -19,7 +19,6 @@ "main": "dns.js", | ||
"co": "^4.6.0", | ||
"cron": "^1.2.1", | ||
"commander": "^2.9.0" | ||
}, | ||
"devDependencies": { | ||
"webstorm-disable-index": "^1.1.2" | ||
"webstorm-disable-index": "^1.2.0" | ||
}, | ||
@@ -26,0 +25,0 @@ "engines": { |
# aliyun-dns-updater | ||
1. edit conf ${HOME}/aliyunDnsUpdaterConf.json | ||
1. install | ||
``` | ||
$ npm install aliyun-dns-updater --save | ||
``` | ||
2. edit conf ${HOME}/aliyunDnsUpdaterConf.json | ||
``` | ||
{ | ||
"RecordId": "1", | ||
"AccessKeyId": "", | ||
"AccessKeySecret": "" | ||
"RecordId": "dns RecordId in https://netcn.console.aliyun.com/core/domain/list", | ||
"AccessKeyId": "your AccessKeyId", | ||
"AccessKeySecret": "your AccessKeySecret" | ||
} | ||
@@ -15,6 +22,6 @@ | ||
2. start | ||
3. start | ||
``` | ||
nohup node dns.js -c aliyunDnsUpdaterConf.json > aliyun-dns-updater.log 2>&1 & | ||
$ nohup node ${basedir}/dns.js -c aliyunDnsUpdaterConf.json > aliyun-dns-updater.log 2>&1 & | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
26
5605
117
- Removedcron@^1.2.1
- Removedcron@1.8.3(transitive)
- Removedluxon@1.28.1(transitive)