summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm2
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 {