added INSTANCE_NAME env var

This commit is contained in:
cubedro
2015-03-19 15:30:49 +02:00
parent f5f6f20baf
commit 30d2609c3c
3 changed files with 6 additions and 1 deletions

View File

@@ -20,7 +20,10 @@ var INSTANCE_NAME,
if(process.env.NODE_ENV === 'production')
{
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
if(process.env.INSTANCE_NAME !== "")
{
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
}
ETH_VERSION = shelljs.exec((process.env.ETH_IMPLEMENTATION === 'go' ? 'ethereum -version' : 'eth -V'), {silent: true}).output;
}