From 09c518408e9e702ae9e6b8b7f25a13a1526820a0 Mon Sep 17 00:00:00 2001 From: IcedComputer <31418197+IcedComputer@users.noreply.github.com> Date: Tue, 27 Aug 2019 12:50:34 -0700 Subject: [PATCH] Update install.sh --- auto_install/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index dac2fea..3a6c978 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -747,8 +747,8 @@ setCustomDomain() { confOpenVPN() { # Grab the existing Hostname 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) - NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1) + # 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=$uuidgen -r # Create a unique server name using the host name and UUID SERVER_NAME="${HOST_NAME}_${NEW_UUID}"