diff --git a/bin/service.js b/bin/service.js index a992e5b..956fa42 100644 --- a/bin/service.js +++ b/bin/service.js @@ -1,8 +1,16 @@ 'use strict'; var punch = require('../'); +var exec = require('child_process').exec; function touch() { + exec("/usr/local/bin/ddns --hostname sarah.daplie.com --email 'coolaj86@gmail.com' --agree --token /srv/holepunch/bin/token.jwt", function (err, stdout, stderr) { + if (err || stderr) { + console.error('ddns error:', err || stderr); + } + //console.log(stdout); + }); + punch({ mappings: [ { internal: 80