mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-15 16:37:03 +01:00
feat: add flag for creation or not of new client after install (#1010)
Add a flag `NEW_CLIENT` so that the user can choose whether or not he wishes to create a new user after installation. It is specially useful on headless installations, when upgrading to a different server, but keeping old credentials. It does not change any defaults, so if no flag is passed, it still creates the new user. --------- Co-authored-by: Stanislas Lange <git@slange.me>
This commit is contained in:
@@ -100,6 +100,7 @@ If you want to customise your installation, you can export them or specify them
|
||||
- `MULTI_CLIENT=n`
|
||||
- `CLIENT_CERT_DURATION_DAYS=3650`
|
||||
- `SERVER_CERT_DURATION_DAYS=3650`
|
||||
- `NEW_CLIENT=y` (set to `n` to skip client creation after installation)
|
||||
|
||||
If the server is behind NAT, you can specify its endpoint with the `ENDPOINT` variable. If the endpoint is the public IP address which it is behind, you can use `ENDPOINT=$(curl -4 ifconfig.co)` (the script will default to this). The endpoint can be an IPv4 or a domain.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user