From 2e5a344c82ec6672f28ec314768eae0bd5afab4e Mon Sep 17 00:00:00 2001 From: IcedComputer <31418197+IcedComputer@users.noreply.github.com> Date: Thu, 20 Jun 2019 17:37:56 -0700 Subject: [PATCH] Fixed issue with grabbing hostname Per comments and recommendations, added the "-s" when grabbing the hostname. This will ensure uniform performance across various platforms. --- auto_install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 4cd6730..dac2fea 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -746,7 +746,7 @@ setCustomDomain() { confOpenVPN() { # Grab the existing Hostname - HOST_NAME=$(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) # Create a unique server name using the host name and UUID