Update README.md
This commit is contained in:
@@ -28,7 +28,7 @@ An admin dashboard for Wireguard — manage hosts, clients, tunnels, and IP rule
|
||||
Run the install script on a fresh machine:
|
||||
|
||||
```bash
|
||||
REPO_URL=https://git.tben.me/Moduletrace/wireguard-ui.git bash -c '$(< <(curl -fsSL https://git.tben.me/Moduletrace/wireguard-ui/raw/branch/main/src/scripts/install-wg-ui.sh))'
|
||||
bash < <(curl -fsSL https://git.tben.me/Moduletrace/wireguard-ui/raw/branch/main/src/scripts/install-wg-ui.sh)
|
||||
```
|
||||
|
||||
Or clone the repo and run the script manually:
|
||||
@@ -36,7 +36,7 @@ Or clone the repo and run the script manually:
|
||||
```bash
|
||||
git clone https://git.tben.me/Moduletrace/wireguard-ui.git
|
||||
cd wireguard-ui
|
||||
REPO_URL=https://git.tben.me/Moduletrace/wireguard-ui.git bash src/scripts/install-wg-ui.sh
|
||||
bash src/scripts/install-wg-ui.sh
|
||||
```
|
||||
|
||||
The install script will:
|
||||
|
||||
@@ -15,7 +15,7 @@ WGUI_LIB_DIR="/var/lib/wgui"
|
||||
WG_QUICK_HELPER="$WGUI_LIB_DIR/scripts/wg-quick-manage.sh"
|
||||
INSTALL_DIR="${INSTALL_DIR:-}"
|
||||
SERVICE_NAME="${SERVICE_NAME:-wgui}"
|
||||
REPO_URL="${REPO_URL:-}"
|
||||
REPO_URL="${REPO_URL:-https://git.tben.me/Moduletrace/wireguard-ui.git}"
|
||||
BRANCH="${BRANCH:-main}"
|
||||
BUN_INSTALL_DIR="${BUN_INSTALL_DIR:-/opt/bun}"
|
||||
BUN_VERSION="${BUN_VERSION:-1.3.14}"
|
||||
@@ -46,9 +46,6 @@ log "running the wg-ui service as root"
|
||||
if [ "$DEV_MODE" = true ]; then
|
||||
INSTALL_DIR="${INSTALL_DIR:-$REPO_ROOT}"
|
||||
log "NODE_ENV=development — using local repo at $INSTALL_DIR, skipping clone and system service installation (daemon is assumed to already be running)"
|
||||
elif [ -z "$REPO_URL" ]; then
|
||||
fail "REPO_URL is not set — pass the git URL of the wg-ui repo, e.g.
|
||||
REPO_URL=https://git.tben.me/Moduletrace/wireguard-ui.git $0"
|
||||
else
|
||||
INSTALL_DIR="${INSTALL_DIR:-$WGUI_LIB_DIR/webapp}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user