Skip to content

Commit

Permalink
Merge pull request #72 from WeBankBlockchain/dev
Browse files Browse the repository at this point in the history
fix shell of grep port
  • Loading branch information
CodingCattwo authored Mar 4, 2022
2 parents 1c65179 + fdfd764 commit a780189
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions WeBASE-Data-Collect/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
**兼容性**

- 支持FISCO-BCOS 2.4.0或以上版本
- WeBASE-Front 1.4.0或以上版本
- WeBASE-Front 1.4.0 - 1.4.3版本

详细了解,请阅读[**技术文档**](https://webasedoc.readthedocs.io/zh_CN/latest/)

Expand All @@ -33,7 +33,7 @@
**兼容性**

- 支持FISCO-BCOS 2.3.0或以上版本
- WeBASE-Front 1.3.0或以上版本
- WeBASE-Front 1.3.0 - 1.4.3版本

详细了解,请阅读[**技术文档**](https://webasedoc.readthedocs.io/zh_CN/latest/)

2 changes: 1 addition & 1 deletion WeBASE-Data-Collect/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CURRENT_DIR=$(pwd)/
LOG_DIR=${CURRENT_DIR}log
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down
2 changes: 1 addition & 1 deletion WeBASE-Data-Collect/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_MAIN=com.webank.webase.data.collect.Application
CURRENT_DIR=$(pwd)/
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down
2 changes: 1 addition & 1 deletion WeBASE-Data-Collect/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_MAIN=com.webank.webase.data.collect.Application
CURRENT_DIR=$(pwd)/
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down
2 changes: 1 addition & 1 deletion WeBASE-Data-Fetcher/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CURRENT_DIR=$(pwd)/
LOG_DIR=${CURRENT_DIR}log
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down
2 changes: 1 addition & 1 deletion WeBASE-Data-Fetcher/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_MAIN=com.webank.webase.data.fetcher.Application
CURRENT_DIR=$(pwd)/
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down
2 changes: 1 addition & 1 deletion WeBASE-Data-Fetcher/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_MAIN=com.webank.webase.data.fetcher.Application
CURRENT_DIR=$(pwd)/
CONF_DIR=${CURRENT_DIR}conf

SERVER_PORT=$(cat $CONF_DIR/application.yml| grep "port" | awk '{print $2}'| sed 's/\r//')
SERVER_PORT=$(cat $CONF_DIR/application.yml | grep "server:" -A 3 | grep "port" | awk '{print $2}'| sed 's/\r//')
if [ ${SERVER_PORT}"" = "" ];then
echo "$CONF_DIR/application.yml server port has not been configured"
exit -1
Expand Down

0 comments on commit a780189

Please sign in to comment.