2016-08-08 16:40:14 +08:00
|
|
|
#!/bin/bash
|
2017-01-12 18:29:02 +08:00
|
|
|
set -e
|
2016-10-19 14:32:00 +08:00
|
|
|
cp tests/docker-compose.test.yml make/.
|
2016-06-15 11:19:10 +08:00
|
|
|
|
2018-09-12 14:38:29 +08:00
|
|
|
mkdir -p core
|
2019-03-18 15:07:19 +08:00
|
|
|
cp /data/secret/core/private_key.pem /etc/core/
|
2016-06-07 12:19:48 +08:00
|
|
|
|
2018-09-12 14:38:29 +08:00
|
|
|
mkdir src/core/conf
|
|
|
|
|
cp make/common/config/core/app.conf src/core/conf/
|
2018-04-19 13:52:18 +08:00
|
|
|
if [ "$(uname)" == "Darwin" ]; then
|
2019-04-02 20:08:26 +08:00
|
|
|
IP=`ifconfig en0 | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'`
|
2018-04-19 13:52:18 +08:00
|
|
|
else
|
|
|
|
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
|
|
|
|
fi
|
2017-11-15 14:49:14 +08:00
|
|
|
echo "server ip is "$IP
|
2019-01-09 17:40:27 +08:00
|
|
|
|
2019-02-20 18:01:48 +08:00
|
|
|
echo "Current path is"
|
|
|
|
|
pwd
|
2019-05-09 17:26:56 +08:00
|
|
|
cat make/common/config/core/env
|
2019-02-20 18:01:48 +08:00
|
|
|
|
2017-11-15 14:49:14 +08:00
|
|
|
chmod 777 /data/
|