소스 검색

add fallback for getting LOCAL_NET_ID

tags/v0.8.0
Jonathan Cobb 4 년 전
부모
커밋
166782b4e3
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      bin/prep_bubble_jar

+ 5
- 1
bin/prep_bubble_jar 파일 보기

@@ -59,7 +59,11 @@ fi

LOCAL_NET_ID="$("${SCRIPT_DIR}/bconst" bubble.ApiConstants.ROOT_NETWORK_UUID 2> /dev/null)"
if [[ -z "${LOCAL_NET_ID}" ]] ; then
die "ROOT_NETWORK_UUID could not be read from ApiConstants"
# try to read from source file
LOCAL_NET_ID="$(cat "${BUBBLE_SERVER}/src/main/java/bubble/ApiConstants.java" | grep -v '//' | egrep '\s+String\s+ROOT_NETWORK_UUID' | awk -F '"' '{print $2}')"
if [[ -z "${LOCAL_NET_ID}" ]] ; then
die "ROOT_NETWORK_UUID could not be read from ApiConstants"
fi
fi

echo "lbs = ${LOCALSTORAGE_BASE_DIR}"


불러오는 중...
취소
저장