Replace hostname -f with uname -n
This commit is contained in:

committed by
Dawn Chen

parent
996ded35ff
commit
2e702b0c61
@@ -36,7 +36,7 @@ if [ "$cert_ip" == "_use_aws_external_ip_" ]; then
|
||||
fi
|
||||
|
||||
if [ "$cert_ip" == "_use_azure_dns_name_" ]; then
|
||||
cert_ip=$(hostname -f | awk -F. '{ print $2 }').cloudapp.net
|
||||
cert_ip=$(uname -n | awk -F. '{ print $2 }').cloudapp.net
|
||||
use_cn=true
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user