Harden local installer

This commit is contained in:
Codex
2026-04-25 03:06:19 +00:00
parent 9e04ba78fc
commit c182fcc476
2 changed files with 101 additions and 14 deletions
+9 -4
View File
@@ -72,17 +72,22 @@ From the repository root:
The installer:
- checks Node, npm, Docker, and OpenShell CLI availability;
- installs npm dependencies;
- checks Node, npm, Docker, OpenShell CLI availability, sandbox inventory reachability, and default port occupancy;
- installs npm dependencies with `npm ci` when `package-lock.json` exists;
- runs a non-blocking `npm audit` summary;
- creates `.env.local` if needed;
- generates a local dashboard password, signing secret, and recovery token if they are missing;
- runs `npm run build` as a verification step;
- removes `.next` afterward so the development server starts cleanly.
- runs `npm run build` as a verification step.
It refuses to run as root unless `--allow-root` is supplied. It does not install or manage a systemd service.
Options:
```bash
./install.sh --no-build
./install.sh --no-audit
./install.sh --clean-next
./install.sh --allow-root
./install.sh --start
./install.sh --help
```