diff options
-rw-r--r-- | perl-install/network/network.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index 71b99bb39..d363ac7a2 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -99,7 +99,7 @@ sub write_network_conf { $net->{network}{NETWORKING} = 'yes'; setVarsInSh($network_file, $net->{network}, qw(HOSTNAME NETWORKING GATEWAY GATEWAYDEV NISDOMAIN FORWARD_IPV4 NETWORKING_IPV6)); - $net->{network}{HOSTNAME} and sethostname($net) unless $::isInstall; + $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net); } sub write_zeroconf { |