Remove install script from server.ts

This commit is contained in:
2026-09-20 19:18:15 +01:00
parent 11fd924c50
commit a4c7130c0e
2 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ SERVICE_NAME="${SERVICE_NAME:-wgui}"
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.4.1}"
BUN_VERSION="${BUN_VERSION:-1.3.14}"
BUN_BIN="/usr/local/bin/bun"
UPDATE=false
DEV_MODE=false
+2 -10
View File
@@ -32,17 +32,9 @@ const server = Bun.serve({
});
bunext.bunextLog.info(`env: ${process.env.NODE_ENV}`);
bunext.bunextLog.build(`Setting up wireguard ...`);
execSync(path.join(__dirname, "scripts", "install-wg-ui.sh"), {
stdio: "ignore",
env: {
...process.env,
SKIP_SERVICE_RESTART: "1",
},
});
bunext.bunextLog.success(`Wireguard setup complete!`);
bunext.bunextLog.build(`Syncing WireGuard hosts ...`);
await syncWireguardHosts();
bunext.bunextLog.success(`Wireguard host sync complete!`);
bunext.bunextLog.info(`Server running on http://localhost:${server.port} ...`);