Parcourir la source

add fallback for getting LOCAL_NET_ID

tags/v0.8.0
Jonathan Cobb il y a 5 ans
Parent
révision
166782b4e3
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +5
    -1
      bin/prep_bubble_jar

+ 5
- 1
bin/prep_bubble_jar Voir le fichier

@@ -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}"


Chargement…
Annuler
Enregistrer