Skip to content

Commit

Permalink
Merge pull request #135 from dappnode/v0.2.1
Browse files Browse the repository at this point in the history
v0.2.1 Release
  • Loading branch information
eduadiez authored Jul 5, 2019
2 parents 9be7273 + 15ae9f0 commit 06e0ccf
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 572 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ jobs:
on:
tags: true
condition: "$TRAVIS_TAG = release || $TRAVIS_TAG = release/patch || $TRAVIS_TAG = release/minor || $TRAVIS_TAG = release/major"
# after_deploy:
# - wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/after_deploy.sh
# - source after_deploy.sh
after_deploy:
- wget https://raw.githubusercontent.com/dappnode/DAppNode/master/scripts/after_deploy.sh
- source after_deploy.sh
23 changes: 1 addition & 22 deletions build/src/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const db = require("./db");
const { eventBus, eventBusTag } = require("./eventBus");
// Modules
const dyndnsClient = require("./dyndnsClient");
// Scripts
const openPorts = require("./openPorts");
// Utils
const registerHandler = require("./utils/registerHandler");
const setIntervalAndRun = require("./utils/setIntervalAndRun");
Expand Down Expand Up @@ -111,26 +109,7 @@ setIntervalAndRun(async () => {
}, publicIpCheckInterval);

/**
* 3. Open ports if UPnP is available
* ==================================
*
* `upnpAvailable` is set in `initializeApp.js`.
* If UPnP is available the openPorts functions calls UPnP sequentially to
* open all ports declared in its object.
*/

db.get("upnpAvailable").then(upnpAvailable => {
if (upnpAvailable) {
openPorts()
.then(() => logs.info("Open ports script - Successfully completed"))
.catch(e => logs.error(`Open ports script - Error: ${e.stack}`));
} else {
logs.info("Open ports script - skipping, UPnP is not available");
}
});

/**
* 4. Log debug info
* 3. Log debug info
* =================
*
* - Print db for debugging
Expand Down
92 changes: 0 additions & 92 deletions build/src/src/openPorts.js

This file was deleted.

14 changes: 0 additions & 14 deletions build/src/src/upnpc/README.md

This file was deleted.

84 changes: 0 additions & 84 deletions build/src/src/upnpc/index.js

This file was deleted.

69 changes: 0 additions & 69 deletions build/src/src/upnpc/parseCloseOutput.js

This file was deleted.

17 changes: 0 additions & 17 deletions build/src/src/upnpc/parseGeneralErrors.js

This file was deleted.

Loading

0 comments on commit 06e0ccf

Please sign in to comment.