Replace hostname -f with uname -n

This commit is contained in:
Kenjiro Nakayama
2015-04-07 01:22:06 +09:00
committed by Dawn Chen
parent 996ded35ff
commit 2e702b0c61
8 changed files with 8 additions and 14 deletions

View File

@@ -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