diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-09-25 10:16:57 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-09-25 10:16:57 -0700 |
commit | ed7cdece4009646b7f2d67030c439108c3692485 (patch) | |
tree | 8274096d8283f885ff2373976d7af97f9b557523 /scripts/system/vyatta_update_hosts.pl | |
parent | 0aabbfdb8bf8b51eb774f385f1ec8da0c599a2b4 (diff) | |
parent | 647f7b50a80925bed700525aebd225ad59319cf4 (diff) | |
download | vyatta-cfg-system-ed7cdece4009646b7f2d67030c439108c3692485.tar.gz vyatta-cfg-system-ed7cdece4009646b7f2d67030c439108c3692485.zip |
Bugfix 8290: Detect original unsalted password
Diffstat (limited to 'scripts/system/vyatta_update_hosts.pl')
-rwxr-xr-x | scripts/system/vyatta_update_hosts.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/system/vyatta_update_hosts.pl b/scripts/system/vyatta_update_hosts.pl index 0fb2a914..7c8bc8e6 100755 --- a/scripts/system/vyatta_update_hosts.pl +++ b/scripts/system/vyatta_update_hosts.pl @@ -71,9 +71,6 @@ if (defined $domain_name) { } $hosts_line .= " $host_name\t #vyatta entry\n"; -set_hostname $host_name; -set_mailname $mail_name; - my ($out, $tempname) = tempfile($HOSTS_TMPL, UNLINK => 1) or die "Can't create temp file: $!"; @@ -97,3 +94,5 @@ close ($out); system("sudo cp $tempname $HOSTS_CFG") == 0 or die "Can't copy $tempname to $HOSTS_CFG: $!"; +set_hostname $host_name; +set_mailname $mail_name; |