Files
vpsmgr/scripts
bluebluesodaandCommandCodeBot 96f1db04a8 fix(install): script robustness on fresh/adopted installs (found on Ubuntu 24)
Three install-path bugs surfaced by the Ubuntu 24.04 test host:

- 40-panel.sh: replacing the running vps binary failed with ETXTBSY on
  adopted installs (vps.service active) and the failure was ignored —
  the install "succeeded" with the OLD binary. Stop the service before
  cp and die if the copy fails.
- 40-panel.sh: `tee /etc/vpsmgr/.last-install.out` failed on a fresh
  host because /etc/vpsmgr does not exist yet (it is created by
  `vps install`). mkdir it first.
- 30-traefik.sh: chown vps:vps on /etc/traefik/dynamic ran before the
  vps user existed (40-panel creates it), erroring with "invalid user"
  and aborting the step under set -e. Skip when the user is absent;
  ensureVPSUser re-chowns the dir on every install.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
2026-08-14 10:19:02 +00:00
..