Skip to content

Commit 06d8795

Browse files
committed
chore(stacks): update zookeeper
1 parent 859962c commit 06d8795

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

stacks/zookeeper/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ function build() {
88
generate-stack-path
99
BIN_DIR="${DATA_DIR}"/bin
1010
mkdir -p "${BIN_DIR}"
11-
curl -fsSL -o tmp.tar.gz https://github.com/apache/zookeeper/archive/refs/tags/release-${STACK_VERSION}.tar.gz
11+
curl -fsSL -o tmp.tar.gz https://dlcdn.apache.org/zookeeper/zookeeper-${STACK_VERSION}/apache-zookeeper-${STACK_VERSION}-bin.tar.gz
1212
tar -xzf tmp.tar.gz
13-
mv zookeeper-release-"${STACK_VERSION}"/* "${DATA_DIR}"
14-
rm zookeeper-release-"${STACK_VERSION}" tmp.tar.gz -rf
13+
mv apache-zookeeper-"${STACK_VERSION}"-bin/* "${DATA_DIR}"
14+
rm apache-zookeeper-"${STACK_VERSION}"-bin tmp.tar.gz -rf
1515

1616
cat << EOF > ${PROFILE_DIR}/${STACK_NAME}.sh
1717
export PATH="/opt/drycc/zookeeper/bin:\$PATH"
1818
EOF
1919
}
2020

2121
# call build stack
22-
build-stack "${1}"
22+
build-stack "${1}"
23+

0 commit comments

Comments
 (0)