diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-20 14:04:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-20 14:04:26 -0400 |
commit | 8a1d8da0cc4501872244b2b90058421738cd882a (patch) | |
tree | ce5082a5c633c934ec051228203ee7f30ad25b0b /commit.d/50vcs-commit | |
parent | 004a68e5c5ba6c4d89a8e3d7c1b767e2668841f0 (diff) |
Deal with strange systems that include the domain name in the hostname, by stripping it. Closes: #600026
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index 7fb4809..6e509e6 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -22,6 +22,7 @@ else fi hostname=`hostname` +hostname="${hostname%%.*}" dnsdomainname=`dnsdomainname 2>/dev/null || true` if [ -n "$dnsdomainname" ]; then hostname="$hostname.$dnsdomainname" |