Package: etckeeper Version: 0.49 Severity: minor Tags: patch Hi, some servers can have DNS domain (or its part) in hostname. I have this on servers despite it is not recommended to distinguish servers with the same name, but different domain name in prompt (PS1 redefined with \H).
Instead of composing hostname the FQDN can be retrieved from hostname command: diff --git a/etckeeper/commit.d/50vcs-commit b/etckeeper/commit.d/50vcs-commit index 959babb..340f32b 100755 --- a/etckeeper/commit.d/50vcs-commit +++ b/etckeeper/commit.d/50vcs-commit @@ -21,11 +21,7 @@ else logfile="" fi -hostname=`hostname` -dnsdomainname=`dnsdomainname 2>/dev/null || true` -if [ -n "$dnsdomainname" ]; then - hostname="$hostname.$dnsdomainname" -fi +hostname=`hostname -f` USER= if [ -n "$SUDO_USER" ]; then Best Regards -- Zito -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages etckeeper depends on: ii bzr 2.3.0~beta2-1 easy to use distributed version co ii debconf [debconf-2.0] 1.5.36 Debian configuration management sy ii git [git-core] 1:1.7.1-1.1 fast, scalable, distributed revisi ii git-core 1:1.7.1-1.1 fast, scalable, distributed revisi ii mercurial 1.6.2-2 scalable distributed version contr Versions of packages etckeeper recommends: ii cron 3.0pl1-114 process scheduling daemon Versions of packages etckeeper suggests: ii sudo 1.7.4p4-4 Provide limited super user privile -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org