Option 8 of the x-ui menu could only generate a random web base path, and it reported success and restarted the panel even when the write had failed.
Offer a random or a typed path, validate it, show it before applying, and restart only after the CLI reports success and a second read returns the same path. The confirmation prompt uses no bash 4 expansion, so the menu test also runs under bash 3.2.