Ask for the server role in the installer, log everything
- install.sh asks the role first: panel + VPN (as before), panel only (skips AmneziaWG, the kernel module and the headers/virt checks) or node (no panel; takes the awgjoin:// string and checks the panel's cert pin with openssl before building anything). ROLE= / JOIN= skip the questions; an update keeps the previous role. - The previous cli.env is read before a reinstall removes the project directory. Before this, keeping data silently lost SUB_PORT / SUB_TLS and broke every issued sen:// link. - Output: a header, numbered steps, menus, a summary before installing and a final block per role. The full output of apt, DKMS, npm, awg-quick, ufw and systemctl is shown as a dimmed block under its step, including what used to go to /dev/null. - The log starts with the first line: checks, questions with answers (password masked), all command output. It is written without colour codes, mode 600.
This commit is contained in:
+505
-153
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user