Skip to content

Commit

Permalink
Updating for v0.5, testing auto-configuration on ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerappliances committed Jul 15, 2011
1 parent 517a8e6 commit 83b03d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run/client-v0.5.js
Expand Up @@ -79,7 +79,10 @@ process.argv.forEach(
/**
* Auto-populate box configuration settings on EC2
*/
if (process.env['ec2'] == 'true') {

console.log('Process for EC2: ' + process.env['ec2']);

if (process.env['ec2'] == true) {

console.log('Trying auto-configuration');
var autoPopulate = ['instance-id', 'local-ipv4', 'public-hostname'];
Expand All @@ -94,7 +97,7 @@ if (process.env['ec2'] == 'true') {
} else {
var cmdline = 'export ' + parameter + '=' + stdout;
require('child_process').exec(cmdline, function (error, stdout, stderr) {

});
}
});
Expand Down

0 comments on commit 83b03d5

Please sign in to comment.