mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-27 19:16:16 +00:00
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