mirror of
https://github.com/alibaba/higress.git
synced 2026-05-26 13:47:27 +08:00
feat: update get-higress.sh (#500)
This commit is contained in:
@@ -71,7 +71,7 @@ outputUsage() {
|
|||||||
echo '
|
echo '
|
||||||
-c, --config-url=URL URL of the config storage
|
-c, --config-url=URL URL of the config storage
|
||||||
Use Nacos with format: nacos://192.168.0.1:8848
|
Use Nacos with format: nacos://192.168.0.1:8848
|
||||||
Use local files with format: file://opt/higress/conf
|
Use local files with format: file:///opt/higress/conf
|
||||||
--use-builtin-nacos use the built-in Nacos service instead of
|
--use-builtin-nacos use the built-in Nacos service instead of
|
||||||
an external one
|
an external one
|
||||||
--nacos-ns=NACOS-NAMESPACE
|
--nacos-ns=NACOS-NAMESPACE
|
||||||
@@ -143,7 +143,7 @@ runAsRoot() {
|
|||||||
# verifySupported checks that the os/arch combination is supported for
|
# verifySupported checks that the os/arch combination is supported for
|
||||||
# binary builds, as well whether or not necessary tools are present.
|
# binary builds, as well whether or not necessary tools are present.
|
||||||
verifySupported() {
|
verifySupported() {
|
||||||
local supported="darwin-amd64\nlinux-amd64\nwindows-amd64\n"
|
local supported="darwin-amd64\nlinux-amd64\nwindows-amd64\ndarwin-arm64\nlinux-arm64\nwindows-arm64\n"
|
||||||
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
|
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
|
||||||
echo "${OS}-${ARCH} platform isn't supported at the moment."
|
echo "${OS}-${ARCH} platform isn't supported at the moment."
|
||||||
echo "Stay tuned for updates on https://github.com/alibaba/higress."
|
echo "Stay tuned for updates on https://github.com/alibaba/higress."
|
||||||
@@ -191,7 +191,7 @@ download() {
|
|||||||
|
|
||||||
# install installs the product.
|
# install installs the product.
|
||||||
install() {
|
install() {
|
||||||
tar -zx --exclude="docs" --exclude="src" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
|
tar -zx --exclude="docs" --exclude="src" --exclude="test" -f "$HIGRESS_TMP_FILE" -C "$DESTINATION" --strip-components=1
|
||||||
bash "$DESTINATION/bin/configure.sh" --auto-start ${CONFIG_ARGS[@]}
|
bash "$DESTINATION/bin/configure.sh" --auto-start ${CONFIG_ARGS[@]}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user