@@ -12,8 +12,8 @@ if [ "$(id -u)" -ne 0 ]; then
1212fi
1313
1414# Initialize variables
15- MASTER_IP=" "
16- NODE_IP=" "
15+ MASTER_IP=" 172.31.26.216 "
16+ NODE_IP=" 172.31.26.216 "
1717NODE_NAME=$( hostname) # Always use system hostname
1818NODE_ROLE=" bluechi" # Default node role (master, nodeagent, bluechi)
1919NODE_TYPE=" vehicle" # Default node type (vehicle, cloud)
@@ -163,8 +163,10 @@ install_required_packages() {
163163# MASTER_IP and NODE_IP are set from command line arguments
164164GRPC_PORT=" 47004"
165165# DOWNLOAD_URL="https://github.com/piccolo-framework/piccolo/releases/download/latest"
166- DOWNLOAD_URL=" https://github.com/eclipse-pullpiri/pullpiri/releases/latest/download"
167166# DOWNLOAD_URL="https://raw.githubusercontent.com/eclipse-pullpiri/pullpiri/main/examples/binarys"
167+ VERSION_TXT=" ./version.txt"
168+ VERSION=$( cat " $VERSION_TXT " )
169+ DOWNLOAD_URL=" https://github.com/eclipse-pullpiri/pullpiri/releases/download/${VERSION} "
168170CHECKSUM_URL=" ${DOWNLOAD_URL} " # Define CHECKSUM_URL
169171INSTALL_DIR=" /opt/piccolo"
170172CONFIG_DIR=" /etc/piccolo"
@@ -247,11 +249,11 @@ chmod +x ${INSTALL_DIR}/${BINARY_NAME}
247249echo " Downloading system check script..."
248250SCRIPT_DOWNLOAD_SUCCESS=false
249251if command -v curl & > /dev/null; then
250- if curl -L " ${DOWNLOAD_URL} /scripts/ node_ready_check.sh" -o /usr/local/bin/node_ready_check.sh --fail; then
252+ if curl -L " ${DOWNLOAD_URL} /node_ready_check.sh" -o /usr/local/bin/node_ready_check.sh --fail; then
251253 SCRIPT_DOWNLOAD_SUCCESS=true
252254 fi
253255elif command -v wget & > /dev/null; then
254- if wget " ${DOWNLOAD_URL} /scripts/ node_ready_check.sh" -O /usr/local/bin/node_ready_check.sh; then
256+ if wget " ${DOWNLOAD_URL} /node_ready_check.sh" -O /usr/local/bin/node_ready_check.sh; then
255257 SCRIPT_DOWNLOAD_SUCCESS=true
256258 fi
257259fi
0 commit comments