diff options
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" |