Skip to content

Commit

Permalink
finder: don't rely on occi for adafruitwebide install
Browse files Browse the repository at this point in the history
the occi config option was failing during bootstrap
because occi couldn't trigger the installation of a
package from it's own postinst
  • Loading branch information
toddtreece committed Jan 27, 2015
1 parent 9ff190a commit ffcc4c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pi_finder/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pi_finder",
"version": "1.0.0-beta",
"version": "2.0.0",
"description": "An atom-shell based utility for finding Raspberry Pis on the local network",
"main": "main.js",
"repository": {
Expand Down
12 changes: 11 additions & 1 deletion pi_finder/src/ssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ proto.shell = function() {

proto.buildCommand = function() {

var command = options = '';
var command = options = '',
webide = false;

if(this.pi_config.hasOwnProperty('webide')) {
webide = true;
delete this.pi_config.webide;
}

// loop through options and build new occidentalis.txt
for(var key in this.pi_config) {
Expand All @@ -182,6 +188,10 @@ proto.buildCommand = function() {

command += this.install_command;

if(webide) {
command += ' && sudo apt-get -y install adafruitwebide';
}

return command;

};

0 comments on commit ffcc4c9

Please sign in to comment.