#!/bin/bash
set -e
cp tests/docker-compose.test.yml make/.

mkdir -p core
cp /data/secret/core/private_key.pem /etc/core/

mkdir src/core/conf
cp make/common/config/core/app.conf src/core/conf/
if [ "$(uname)" == "Darwin" ]; then
        IP=`ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'`
else 
        IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
fi
echo "server ip is "$IP

echo "Current path is"
pwd
cat make/common/config/core/config_env

chmod 777 /data/

#!/bin/bash
set -e
cp tests/docker-compose.test.yml make/.

mkdir -p core
cp /data/secret/core/private_key.pem /etc/core/

mkdir src/core/conf
cp make/common/config/core/app.conf src/core/conf/
if [ "$(uname)" == "Darwin" ]; then
        IP=`ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'`
else 
        IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
fi
echo "server ip is "$IP

echo "Current path is"
pwd
cat make/common/config/core/env

chmod 777 /data/

Fix travis failure: read the content of env instead of config_env as the config_env has been removed
Fix travis failure: read the content of env instead of config_env as the config_env has been removed

Read the content of env instead of config_env as the config_env has been removed

Signed-off-by: Wenkai Yin <f217e32b30716cdf38664c331b6ddefbd7f5cdf6@vmware.com>
