Update README.md

This commit is contained in:
2026-09-20 18:43:41 +01:00
parent bd1aa199d3
commit 7f7f295546
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ An admin dashboard for Wireguard — manage hosts, clients, tunnels, and IP rule
Run the install script on a fresh machine: Run the install script on a fresh machine:
```bash ```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: Or clone the repo and run the script manually:
@@ -36,7 +36,7 @@ Or clone the repo and run the script manually:
```bash ```bash
git clone https://git.tben.me/Moduletrace/wireguard-ui.git git clone https://git.tben.me/Moduletrace/wireguard-ui.git
cd wireguard-ui 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: The install script will:
+1 -4
View File
@@ -15,7 +15,7 @@ WGUI_LIB_DIR="/var/lib/wgui"
WG_QUICK_HELPER="$WGUI_LIB_DIR/scripts/wg-quick-manage.sh" WG_QUICK_HELPER="$WGUI_LIB_DIR/scripts/wg-quick-manage.sh"
INSTALL_DIR="${INSTALL_DIR:-}" INSTALL_DIR="${INSTALL_DIR:-}"
SERVICE_NAME="${SERVICE_NAME:-wgui}" SERVICE_NAME="${SERVICE_NAME:-wgui}"
REPO_URL="${REPO_URL:-}" REPO_URL="${REPO_URL:-https://git.tben.me/Moduletrace/wireguard-ui.git}"
BRANCH="${BRANCH:-main}" BRANCH="${BRANCH:-main}"
BUN_INSTALL_DIR="${BUN_INSTALL_DIR:-/opt/bun}" BUN_INSTALL_DIR="${BUN_INSTALL_DIR:-/opt/bun}"
BUN_VERSION="${BUN_VERSION:-1.3.14}" BUN_VERSION="${BUN_VERSION:-1.3.14}"
@@ -46,9 +46,6 @@ log "running the wg-ui service as root"
if [ "$DEV_MODE" = true ]; then if [ "$DEV_MODE" = true ]; then
INSTALL_DIR="${INSTALL_DIR:-$REPO_ROOT}" 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)" 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 else
INSTALL_DIR="${INSTALL_DIR:-$WGUI_LIB_DIR/webapp}" INSTALL_DIR="${INSTALL_DIR:-$WGUI_LIB_DIR/webapp}"
fi fi