feat: add CONFIGURE=false option in install script (#920)
This commit is contained in:
@@ -29,6 +29,9 @@ import RateLimits from '@site/src/components/RateLimits';
|
|||||||
:::tip Best Practice
|
:::tip Best Practice
|
||||||
It’s best to keep Goose updated. You can update it by re-running the installation script.
|
It’s best to keep Goose updated. You can update it by re-running the installation script.
|
||||||
:::
|
:::
|
||||||
|
:::tip Automation
|
||||||
|
You can disable automatic interactive configuration by adding `| CONFIGURE=false bash` to the script above.
|
||||||
|
:::
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="ui" label="Goose Desktop">
|
<TabItem value="ui" label="Goose Desktop">
|
||||||
To install Goose, click the **button** below:
|
To install Goose, click the **button** below:
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ You can use Goose via CLI or Desktop application.
|
|||||||
```sh
|
```sh
|
||||||
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash
|
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash
|
||||||
```
|
```
|
||||||
|
:::tip Automation
|
||||||
|
You can disable automatic interactive configuration by adding `| CONFIGURE=false bash` to the script above.
|
||||||
|
:::
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="ui" label="Goose Desktop">
|
<TabItem value="ui" label="Goose Desktop">
|
||||||
To install the latest version of Goose, click the **button** below:
|
To install the latest version of Goose, click the **button** below:
|
||||||
|
|||||||
+12
-5
@@ -18,6 +18,7 @@ set -eu
|
|||||||
# GOOSE_PROVIDER - Optional: provider for goose
|
# GOOSE_PROVIDER - Optional: provider for goose
|
||||||
# GOOSE_MODEL - Optional: model for goose
|
# GOOSE_MODEL - Optional: model for goose
|
||||||
# CANARY - Optional: if set to "true", downloads from canary release instead of stable
|
# CANARY - Optional: if set to "true", downloads from canary release instead of stable
|
||||||
|
# CONFIGURE - Optional: if set to "false", disables running goose configure interactively
|
||||||
# ** other provider specific environment variables (eg. DATABRICKS_HOST)
|
# ** other provider specific environment variables (eg. DATABRICKS_HOST)
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ OUT_FILE="goose"
|
|||||||
GOOSE_BIN_DIR="${GOOSE_BIN_DIR:-"$HOME/.local/bin"}"
|
GOOSE_BIN_DIR="${GOOSE_BIN_DIR:-"$HOME/.local/bin"}"
|
||||||
RELEASE="${CANARY:-false}"
|
RELEASE="${CANARY:-false}"
|
||||||
RELEASE_TAG="$([[ "$RELEASE" == "true" ]] && echo "canary" || echo "stable")"
|
RELEASE_TAG="$([[ "$RELEASE" == "true" ]] && echo "canary" || echo "stable")"
|
||||||
|
CONFIGURE="${CONFIGURE:-true}"
|
||||||
|
|
||||||
# --- 3) Detect OS/Architecture ---
|
# --- 3) Detect OS/Architecture ---
|
||||||
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
|
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
@@ -92,11 +94,16 @@ fi
|
|||||||
echo "Moving goose to $GOOSE_BIN_DIR/$OUT_FILE"
|
echo "Moving goose to $GOOSE_BIN_DIR/$OUT_FILE"
|
||||||
mv goose "$GOOSE_BIN_DIR/$OUT_FILE"
|
mv goose "$GOOSE_BIN_DIR/$OUT_FILE"
|
||||||
|
|
||||||
# --- 6) Configure Goose (Optional) ---
|
# skip configuration for non-interactive installs e.g. automation, docker
|
||||||
echo ""
|
if [ "$CONFIGURE" = true ]; then
|
||||||
echo "Configuring Goose"
|
# --- 6) Configure Goose (Optional) ---
|
||||||
echo ""
|
echo ""
|
||||||
"$GOOSE_BIN_DIR/$OUT_FILE" configure
|
echo "Configuring Goose"
|
||||||
|
echo ""
|
||||||
|
"$GOOSE_BIN_DIR/$OUT_FILE" configure
|
||||||
|
else
|
||||||
|
echo "Skipping 'goose configure', you may need to run this manually later"
|
||||||
|
fi
|
||||||
|
|
||||||
# --- 7) Check PATH and give instructions if needed ---
|
# --- 7) Check PATH and give instructions if needed ---
|
||||||
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
|
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user