Commit cdf13992 authored by Dietmar Maurer's avatar Dietmar Maurer

fix bug #117: automatically add domain to hostname

parent 532e77c7
......@@ -349,6 +349,13 @@ __PACKAGE__->register_method({
$param->{nameserver} = join(' ', @ns) if scalar(@ns);
}
# try to append domain to hostmane
if ($param->{hostname} && $param->{hostname} !~ m/\./ &&
$param->{searchdomain}) {
$param->{hostname} .= ".$param->{searchdomain}";
}
my $basecfg_fn = PVE::OpenVZ::config_file($vmid);
my $check_vmid_usage = sub {
......
pve-manager (2.0-53) unstable; urgency=low
* fix bug #117: automatically add domain to hostname when creating
openvz containers.
-- Proxmox Support Team <support@proxmox.com> Thu, 29 Mar 2012 10:19:57 +0200
pve-manager (2.0-52) unstable; urgency=low
* fix Subscription code
......
......@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=52
PACKAGERELEASE=53
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment