mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Update install.sh
This commit is contained in:
parent
2e5a344c82
commit
09c518408e
1 changed files with 2 additions and 2 deletions
|
@ -747,8 +747,8 @@ setCustomDomain() {
|
||||||
confOpenVPN() {
|
confOpenVPN() {
|
||||||
# Grab the existing Hostname
|
# Grab the existing Hostname
|
||||||
HOST_NAME=$(hostname -s)
|
HOST_NAME=$(hostname -s)
|
||||||
# Generate a random, alphanumeric identifier of 16 characters for this server so that we can use verify-x509-name later that is unique for this server installation. Source: Earthgecko (https://gist.github.com/earthgecko/3089509)
|
# Generate a random UUID for this server so that we can use verify-x509-name later that is unique for this server installation.
|
||||||
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
NEW_UUID=$uuidgen -r
|
||||||
# Create a unique server name using the host name and UUID
|
# Create a unique server name using the host name and UUID
|
||||||
SERVER_NAME="${HOST_NAME}_${NEW_UUID}"
|
SERVER_NAME="${HOST_NAME}_${NEW_UUID}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue