Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Feb 20, 2023
1 parent 74d10bb commit 535e492
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,28 @@

```sh
sudo apt-get update && \
sudo apt-get install openresolv wireguard-tools
sudo apt-get install curl openresolv wireguard-tools

sudo su; # run as root
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --version v5.2.1
```

### Mac

```sh
brew install wireguard-tools
brew install v2ray wireguard-tools
```

or

```sh
port install wireguard-tools
port install v2ray wireguard-tools
```

## Install Sentinel CLI client

```sh
curl --silent https://raw.githubusercontent.com/sentinel-official/cli-client/development/scripts/install.sh | sh
curl --silent https://raw.githubusercontent.com/sentinel-official/cli-client/master/scripts/install.sh | sh
```

## Connect to a dVPN node
Expand Down
10 changes: 5 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Linux)
OS=linux
;;
*)
echo "Unsupported"
echo "Unsupported operating system!"
exit 1
;;
esac
Expand All @@ -25,9 +25,9 @@ VERSION=$(

FILE_NAME="sentinelcli-${VERSION}-${OS}-amd64"
FILE_PATH="$(mktemp -d)/${FILE_NAME}"
ASSET_URL="https://github.com/sentinel-official/cli-client/releases/download/v${VERSION}/${FILE_NAME}"
ASSET_URL="https://github.com/${REPO_OWNER}/${REPO_NAME}/releases/download/v${VERSION}/${FILE_NAME}"

curl --location --output "${FILE_PATH}" "${ASSET_URL}"
chmod +x "${FILE_PATH}" &&
sudo chown root "${FILE_PATH}" &&
sudo mv "${FILE_PATH}" /usr/local/bin/sentinelcli
chmod +x "${FILE_PATH}" && \
sudo chown root "${FILE_PATH}" && \
sudo mv "${FILE_PATH}" /usr/local/bin/sentinelcli

0 comments on commit 535e492

Please sign in to comment.