From 7e4936ba1dbae3a0759ef340b37022546facfb2c Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 17 Feb 2015 20:29:35 +0200 Subject: [PATCH] fixed ETH_VERSION --- bin/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/build.sh b/bin/build.sh index ccd801b..97965d7 100644 --- a/bin/build.sh +++ b/bin/build.sh @@ -48,14 +48,15 @@ sudo apt-get -y install cloud-utils # add node service cd ~/bin + +export EC2_INSTANCE_ID=$(ec2metadata --instance-id) +export ETH_VERSION=$(./eth -V) + [ ! -d "www" ] && git clone https://github.com/cubedro/eth-net-intelligence-api www cd www sudo npm install sudo npm install pm2 -g -export EC2_INSTANCE_ID=$(ec2metadata --instance-id) -export ETH_VERSION=$(eth -V) - # pm2 start processes.json # pm2 startup ubuntu # pm3 save \ No newline at end of file